Shark AI/

API Reference

Modelsllms-full.txt
Overview
OverviewAuthenticationModelsErrors
Language Models
Format GuideOpenAI FormatAnthropic FormatGemini Format
Generation Models
Image GenerationVideo Generation
Overview
OverviewAuthenticationModelsErrors
Language Models
Format GuideOpenAI FormatAnthropic FormatGemini Format
Generation Models
Image GenerationVideo Generation

API Reference

Shark AI exposes a unified model gateway across text, image, and video workflows. Use the left navigation to jump into a specific endpoint or protocol guide.

Base URL

https://shark.ai/api/v1

Language Models

Format Guide

GUIDE
choose a format

How to choose between OpenAI, Anthropic, and Gemini formats.

OpenAI Format

POST
/api/v1/chat/completions

OpenAI-compatible text and multimodal chat.

Anthropic Format

POST
/api/v1/messages

Anthropic-compatible messages, tools, and thinking.

Gemini Format

POST
/api/v1/models/{model}:generateContent

Gemini-compatible contents, parts, and generationConfig.

Media APIs

Image Generation

POST
/api/v1/images/generations

Synchronous image generation with signed URL responses.

Video Generation

POST
/api/v1/videos

Asynchronous video task creation and polling.

Platform

Models

GET
/api/v1/models

List available models, categories, and supported protocols.

Common Conventions

Authentication

Bearer token or x-api-key.

Credit

Every successful response includes cost where pricing is configured.

Errors

Consistent error envelope across endpoints.