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/v1Language Models
Format Guide
GUIDEchoose a formatHow to choose between OpenAI, Anthropic, and Gemini formats.
OpenAI Format
POST/api/v1/chat/completionsOpenAI-compatible text and multimodal chat.
Anthropic Format
POST/api/v1/messagesAnthropic-compatible messages, tools, and thinking.
Gemini Format
POST/api/v1/models/{model}:generateContentGemini-compatible contents, parts, and generationConfig.
Media APIs
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.