Everything you need to build on Cloakray
Cloakray is one API for 276 flagship models from Anthropic, OpenAI, Google, DeepSeek, Z.ai, Moonshot AI, Alibaba, and MiniMax. It speaks the request formats your code already uses, so integrating is a base URL and a key rather than a rewrite.
Base URL
https://api.cloakray.com/v1
Authentication
Authorization: Bearer ckr_...
Start here
Everything between nothing and a billed request.
The APIs
One catalogue of models behind every request format: text models on all three text APIs, and their own endpoints for images, video, audio, embeddings and more. Each links to its guide.
- Chat Completions/v1/chat/completionsThe OpenAI-compatible endpoint. Point the openai SDK at Cloakray and change nothing else.
- Responses/v1/responsesThe other OpenAI-compatible endpoint, and the one Codex speaks. Streaming and store are passed through as sent.
- Messages/v1/messagesThe Anthropic-compatible endpoint, served for the whole catalogue rather than only Claude. Takes x-api-key or a bearer token.
- Image generation/v1/images/generationsThe OpenAI image shape, for the models that produce images. Priced per image or per request rather than per 1M tokens.
- Video generation/v1/videosAsynchronous jobs: create one, poll its status, download the clip. Priced per second of video.
- Speech and transcription/v1/audio/speechText to speech in many voices, and speech to text with word timings and speaker labels.
- Embeddings/v1/embeddingsVectors for search and retrieval, plus reranking to sharpen the results.
- Models/v1/modelsThe catalogue in the shape OpenAI clients expect, so model pickers populate themselves. Free, but authenticated.
Guides
The things you reach for once the first request works.
- Tools, structured outputs and reasoningLet models call your functions, return JSON that matches a schema, and think harder on hard problems.
- StreamingToken-by-token responses, still counted and logged.
- IntegrationsThe OpenAI and Anthropic SDKs, the Vercel AI SDK, LangChain, LlamaIndex, MCP, and apps like n8n and Open WebUI.
- Coding agentsClaude Code, Codex, Cursor, opencode, Cline, Kilo Code, Zed and more — a page each.
- MigratingMove from OpenAI, Anthropic, OpenRouter or the Vercel AI Gateway by changing a base URL and a key.
- ConsoleKeys and projects, your team, billing, usage analytics and request logs.
- ErrorsEvery status code the API returns, what causes it, and how to retry safely.
Ready to send a request?
Create a key, top up, and point your existing client at Cloakray.