API reference/Endpoints & examples
Endpoints & Request Examples
Wokey is compatible with the OpenAI and Anthropic API formats. This page lists every public endpoint and shows a request in each of the three text formats.
On this pageexpand_more
Endpoint listlink
/chat/completionsChat CompletionsOpenAI Chat Completions-compatible format for most OpenAI SDKs and chat clients.
/responsesResponsesOpenAI Responses-compatible format. Recommended for Codex CLI.
/messagesMessagesAnthropic Messages-compatible format for Claude Code and Anthropic SDKs. Native Messages requests must include max_tokens; use /chat/completions for OpenAI-style requests.
/images/generationsImage GenerationsOpenAI Images-compatible format for gpt-image-2.5. Unlike text APIs, image requests use separate size, response, and per-image billing rules. Read more →
/v1/videosVideo GenerationsAsynchronous video generation. Submission returns a job ID; poll the status endpoint and download the finished video. Read more →
/modelsModelsReturns available text models by default. Use output_modalities=image, video, or all to discover currently callable media models.
/v1/models/pricingModel PricingReturns normalized pricing for currently callable text, image, and video models, filterable by output modality or exact model ID.
/v1/images/modelsImage ModelsReturns currently callable image models with supported parameters, dimension limits, and per-image pricing tiers.
/v1/videos/modelsVideo ModelsReturns video models with at least one sellable variant, including modes, resolutions, durations, aspect ratios, and per-second prices.
Pathslink
The gateway also supports /v1/chat/completions, /v1/responses, /v1/messages, /v1/images/generations, and /v1/models paths. Video generation uses /v1/videos.
Request exampleslink
OpenAI Chat Completions
curl https://api.wokey.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-sol",
"messages": [
{ "role": "user", "content": "Hello" }
]
}'OpenAI Responses
curl https://api.wokey.ai/v1/responses \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-sol",
"instructions": "You are a helpful assistant.",
"input": [
{ "role": "user", "content": "Hello" }
],
"store": false,
"stream": false
}'Anthropic Messages
curl https://api.wokey.ai/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Hello" }
]
}'