{"openapi":"3.1.0","info":{"title":"Voicica Platform API","description":"One API key for video, image, voice and chat models. Chat completions are OpenAI-compatible (`base_url = https://api.voicica.ai/platform/v1`); image, video and speech generations are asynchronous tasks (poll them or pass `callback_url`). Pay as you go in API credits: 1 credit = USD 0.006. Documentation, prices and code samples: https://voicica.ai/docs/api.","termsOfService":"https://voicica.ai/legal/terms","version":"0.1.0","contact":{"name":"Voicica","email":"support@voicica.ai","url":"https://voicica.ai/api"}},"servers":[{"url":"https://api.voicica.ai/platform/v1"}],"paths":{"/chat/completions":{"post":{"summary":"Create Chat Completion","operationId":"create_chat_completion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}},"text/event-stream":{"schema":{"type":"string","description":"With `stream: true`: server-sent `chat.completion.chunk` events, ending with `data: [DONE]`."}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"413":{"description":"request_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"429":{"description":"rate_limited / quota_exceeded (Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"502":{"description":"upstream_error / invalid_json_output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"504":{"description":"upstream_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/models":{"get":{"summary":"List Models","description":"Chat models (`type: chat`), image models (`type: image`), video models (`type:\nvideo`) and the speech model `voicica/tts` (`type: speech`). Ids are `maker/model`;\nolder ids are still accepted.","operationId":"list_models","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/images/generations":{"post":{"summary":"Create Image Generation","description":"Start an image generation. Asynchronous: answers the task at once\n(202, usually `pending`); poll GET /images/generations/{id} (every 5 s or more) or pass\n`callback_url`. Request errors, caps and an empty balance are answered right away;\nimages that fail later are not charged.","operationId":"create_image_generation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGeneration"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"413":{"description":"request_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"429":{"description":"rate_limited / quota_exceeded (Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"502":{"description":"upstream_error / invalid_json_output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"504":{"description":"upstream_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/images/generations/{generation_id}":{"get":{"summary":"Get Image Generation","description":"An image generation of your account (any of its keys): status, image URLs (kept 30\ndays, `expires_at`), cost and errors.","operationId":"get_image_generation","parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGeneration"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/videos/generations":{"post":{"summary":"Create Video Generation","description":"Start a video generation. Asynchronous: answers the task at once\n(202, usually `pending`); poll GET /videos/generations/{id} (every 10 s or more) or pass\n`callback_url`. Request errors, caps, an empty balance (the balance must cover the\nprice), blocked content and too many videos in progress (5 per key) are answered right\naway; a video that fails later is not charged.","operationId":"create_video_generation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerationRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGeneration"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"413":{"description":"request_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"429":{"description":"rate_limited / quota_exceeded (Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"502":{"description":"upstream_error / invalid_json_output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"504":{"description":"upstream_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/videos/generations/{generation_id}":{"get":{"summary":"Get Video Generation","description":"A video generation of your account (any of its keys): status, video URL (kept 30\ndays, `expires_at`), length, resolution, cost and errors.","operationId":"get_video_generation","parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGeneration"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/audio/speech":{"post":{"summary":"Create Speech","description":"Read a text aloud. Asynchronous: answers the task at once (202);\npoll GET /audio/speech/{id} (every 2 s) or pass `callback_url`. Request errors, caps\nand an empty balance are answered right away; a task that fails is not charged. The\ntext is not stored.","operationId":"create_speech","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechGeneration"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"413":{"description":"request_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"429":{"description":"rate_limited / quota_exceeded (Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"502":{"description":"upstream_error / invalid_json_output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"504":{"description":"upstream_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/audio/speech/{speech_id}":{"get":{"summary":"Get Speech","description":"A speech task of your account (any of its keys): status, audio URL (kept 30 days,\n`expires_at`), duration, cost and errors.","operationId":"get_speech","parameters":[{"name":"speech_id","in":"path","required":true,"schema":{"type":"string","title":"Speech Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechGeneration"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}},"/audio/voices":{"get":{"summary":"List Voices","description":"Voices for POST /audio/speech: the built-in voices\nlisted now and our recommended community voices (any public community voice in a\ncommunity language can be used by id). One entry per voice, with its languages,\ngender, tags, speed control, price and free sample clips. Other query parameters are\nignored.","operationId":"list_voices","parameters":[{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"},{"type":"null"}],"title":"Language"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(female|male|neutral)$"},{"type":"null"}],"title":"Gender"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceList"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"404":{"description":"model_not_found / not_found (unknown path)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}},"503":{"description":"service_unavailable / upstream_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformErrorBody"}}}}},"security":[{"bearerAuth":[]}]}}},"components":{"schemas":{"AssistantMessage":{"properties":{"role":{"type":"string","const":"assistant","title":"Role","default":"assistant"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal"},"tool_calls":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolCall"},"type":"array"},{"type":"null"}],"title":"Tool Calls","description":"The tools the model wants called (finish_reason tool_calls)."}},"type":"object","required":["content"],"title":"AssistantMessage"},"Capabilities":{"properties":{"json_object":{"type":"boolean","title":"Json Object"},"json_schema":{"type":"boolean","title":"Json Schema"},"json_native":{"type":"boolean","title":"Json Native","description":"false: prompt constraint + validation + one retry."},"tools":{"type":"boolean","title":"Tools"},"vision":{"type":"boolean","title":"Vision"},"streaming":{"type":"boolean","title":"Streaming"},"reasoning":{"type":"boolean","title":"Reasoning","description":"The model reasons by default (hidden tokens, billed as output)."},"reasoning_effort":{"type":"boolean","title":"Reasoning Effort","description":"`reasoning_effort` is honoured."}},"type":"object","required":["json_object","json_schema","json_native","tools","vision","streaming","reasoning","reasoning_effort"],"title":"Capabilities"},"ChatCompletion":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"chat.completion","title":"Object","default":"chat.completion"},"created":{"type":"integer","title":"Created"},"model":{"type":"string","title":"Model"},"choices":{"items":{"$ref":"#/components/schemas/Choice"},"type":"array","title":"Choices"},"usage":{"$ref":"#/components/schemas/Usage"},"credits":{"type":"string","title":"Credits","description":"What this call cost in API credits, taken from your API balance: a decimal string with 4 decimals (e.g. `0.0123`), rounded up to the next 0.0001. The JSON-mode retry, if any, is included."},"cost_usd":{"type":"string","title":"Cost Usd","description":"The same in USD at 0.006 per credit, 6 decimals (for reference)."},"voicica":{"$ref":"#/components/schemas/VoicicaInfo"}},"type":"object","required":["id","created","model","choices","usage","credits","cost_usd","voicica"],"title":"ChatCompletion"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","maxLength":100,"title":"Model","description":"A model id from GET /models."},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","maxItems":2000,"minItems":1,"title":"Messages"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P"},"max_tokens":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"max_completion_tokens":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":1.0},{"type":"null"}],"title":"Max Completion Tokens","description":"Same as `max_tokens` (wins if both)."},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Stop"},"response_format":{"anyOf":[{"$ref":"#/components/schemas/ResponseFormat"},{"type":"null"}]},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolDef"},"type":"array","maxItems":128},{"type":"null"}],"title":"Tools","description":"Function tools (models with `capabilities.tools`)."},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"`\"auto\"`, `\"none\"`, `\"required\"` or `{\"type\": \"function\", \"function\": {\"name\": ...}}`."},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls","description":"Passed on as given."},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high"]},{"type":"null"}],"title":"Reasoning Effort","description":"How hard the model thinks before answering (models with `capabilities.reasoning_effort`); `none` turns thinking off (GPT: to a minimum). Omitted: the model's default (see `capabilities.reasoning`). Ignored, and reported, elsewhere."},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/ReasoningParam"},{"type":"null"}],"description":"`{\"effort\": ...}`: same as `reasoning_effort` (that wins)."},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"`true`: server-sent `chat.completion.chunk` events, the last one with `finish_reason`, `usage`, `cost_usd` and `voicica`, then `data: [DONE]`."},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/StreamOptions"},{"type":"null"}],"description":"With `stream: true`: `include_usage` adds OpenAI's usage-only chunk (`choices: []`) before `[DONE]`."},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N","description":"Only 1."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Optional labels `project`, `node`, `step` (strings), recorded with the call's usage (first 64 characters each). Other keys are ignored."},"user":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"User","description":"Accepted, not used."}},"additionalProperties":true,"type":"object","required":["model","messages"],"title":"ChatCompletionRequest","description":"OpenAI Chat Completions request. Fields not listed here are accepted, not used and\nreported in `voicica.ignored_params`; the legacy `functions` / `function_call` are\nrefused (use `tools`)."},"ChatMessage":{"properties":{"role":{"type":"string","maxLength":32,"title":"Role","description":"`system`, `developer`, `user`, `assistant` or `tool`."},"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Content"},"name":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Name","description":"Accepted, not used."},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls","description":"Assistant: the tool calls it made (as returned to you)."},"tool_call_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Tool Call Id","description":"Tool message: the call it answers."}},"additionalProperties":true,"type":"object","required":["role"],"title":"ChatMessage","description":"One message. `content` is a string or a list of parts: `{\"type\": \"text\", \"text\"}`\nand, in user messages to a model with `capabilities.vision`, `{\"type\": \"image_url\",\n\"image_url\": {\"url\": \"https://...\" or \"data:image/png;base64,...\", \"detail\"?}}`.\nAssistant messages may carry `tool_calls`; `role: \"tool\"` messages answer one by\n`tool_call_id` (models with `capabilities.tools`)."},"Choice":{"properties":{"index":{"type":"integer","title":"Index","default":0},"message":{"$ref":"#/components/schemas/AssistantMessage"},"finish_reason":{"type":"string","enum":["stop","length","content_filter","tool_calls"],"title":"Finish Reason"},"logprobs":{"type":"null","title":"Logprobs"}},"type":"object","required":["message","finish_reason"],"title":"Choice"},"CommunityVoicesInfo":{"properties":{"languages":{"items":{"type":"string"},"type":"array","title":"Languages","description":"Languages with community voices now."},"id_format":{"type":"string","title":"Id Format"},"note":{"type":"string","title":"Note"}},"type":"object","required":["languages","id_format","note"],"title":"CommunityVoicesInfo"},"CompletionTokensDetails":{"properties":{"reasoning_tokens":{"type":"integer","title":"Reasoning Tokens","description":"Hidden reasoning, part of completion_tokens."}},"type":"object","required":["reasoning_tokens"],"title":"CompletionTokensDetails"},"FunctionCall":{"properties":{"name":{"type":"string","title":"Name"},"arguments":{"type":"string","title":"Arguments","description":"JSON text, as the model wrote it."}},"type":"object","required":["name","arguments"],"title":"FunctionCall"},"FunctionDef":{"properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Description"},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters","description":"JSON Schema of the arguments (an object)."},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"type":"object","required":["name"],"title":"FunctionDef"},"ImageCapabilities":{"properties":{"max_n":{"type":"integer","title":"Max N","description":"Most images per request (`n`)."},"reference_images":{"type":"boolean","title":"Reference Images","description":"`image_urls` accepted (image editing)."},"max_reference_images":{"type":"integer","title":"Max Reference Images"},"max_prompt_chars":{"type":"integer","title":"Max Prompt Chars"}},"type":"object","required":["max_n","reference_images","max_reference_images","max_prompt_chars"],"title":"ImageCapabilities"},"ImageError":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine code, e.g. `provider_failed`, `timeout`."},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"ImageError"},"ImageGeneration":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"image.generation","title":"Object","default":"image.generation"},"created":{"type":"integer","title":"Created"},"model":{"type":"string","title":"Model"},"status":{"type":"string","enum":["pending","running","succeeded","failed"],"title":"Status","description":"`pending` (waiting at the provider), `running`, then `succeeded` (at least one image) or `failed` (none)."},"n":{"type":"integer","title":"N"},"params":{"additionalProperties":{"type":"string"},"type":"object","title":"Params","description":"The options used (defaults filled in)."},"reference_images":{"type":"integer","title":"Reference Images"},"data":{"items":{"$ref":"#/components/schemas/ImageOutput"},"type":"array","title":"Data"},"credits":{"type":"string","title":"Credits","description":"API credits, 4 decimals. While unfinished: what is held for all `n` images; when finished: what the succeeded images cost (failed ones are given back)."},"cost_usd":{"type":"string","title":"Cost Usd","description":"`credits` in USD at 0.006 per credit, 6 decimals."},"error":{"anyOf":[{"$ref":"#/components/schemas/ImageError"},{"type":"null"}],"description":"When every image failed."},"finished_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finished At"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At","description":"Unix time after which the images are deleted (30 days after they were stored); download them before. `url`s are null afterwards."},"expired":{"type":"boolean","title":"Expired","default":false},"callback_status":{"anyOf":[{"type":"string","enum":["pending","delivered","failed"]},{"type":"null"}],"title":"Callback Status","description":"With `callback_url`: the delivery of the finished task."}},"type":"object","required":["id","created","model","status","n","params","reference_images","data","credits","cost_usd"],"title":"ImageGeneration"},"ImageGenerationRequest":{"properties":{"model":{"type":"string","maxLength":100,"title":"Model","description":"An image model id from GET /models."},"prompt":{"type":"string","maxLength":20000,"minLength":1,"title":"Prompt","description":"See the model's limit."},"n":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"N","description":"Images to make (1-4), each one billed.","default":1},"aspect_ratio":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Aspect Ratio","description":"One of the model's values; default: its default."},"resolution":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Resolution","description":"Models with a `resolution` parameter."},"quality":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Quality","description":"Models with a `quality` parameter (Grok)."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Image Urls","description":"Reference images (public https URLs; PNG, JPEG or WebP), models with `capabilities.reference_images` only. We fetch and keep a copy for the task."},"callback_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Callback Url","description":"Public https URL (port 443) we POST the finished task to, signed (header `Voicica-Signature`, see the docs)."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Optional labels `project`, `node`, `step` (strings), recorded with the call's usage (first 64 characters each). Other keys are ignored."}},"additionalProperties":false,"type":"object","required":["model","prompt"],"title":"ImageGenerationRequest","description":"Start an image generation. Asynchronous only: the answer is the task (202); poll\nGET /images/generations/{id} or pass `callback_url`. Unknown fields are refused (400)."},"ImageModelInfo":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"model","title":"Object","default":"model"},"type":{"type":"string","const":"image","title":"Type","description":"`image`: POST /images/generations (async).","default":"image"},"created":{"type":"integer","title":"Created"},"owned_by":{"type":"string","title":"Owned By"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"capabilities":{"$ref":"#/components/schemas/ImageCapabilities"},"params":{"items":{"$ref":"#/components/schemas/ImageParam"},"type":"array","title":"Params"},"pricing":{"$ref":"#/components/schemas/ImagePricing"}},"type":"object","required":["id","created","owned_by","name","vendor","capabilities","params","pricing"],"title":"ImageModelInfo"},"ImageOutput":{"properties":{"index":{"type":"integer","title":"Index"},"status":{"type":"string","enum":["pending","running","succeeded","failed"],"title":"Status"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Our copy of the image, until `expires_at`; null otherwise."},"error":{"anyOf":[{"$ref":"#/components/schemas/ImageError"},{"type":"null"}]}},"type":"object","required":["index","status","url"],"title":"ImageOutput"},"ImageParam":{"properties":{"name":{"type":"string","title":"Name","description":"Request field: `aspect_ratio`, `resolution` or `quality`."},"values":{"items":{"type":"string"},"type":"array","title":"Values"},"default":{"type":"string","title":"Default"}},"type":"object","required":["name","values","default"],"title":"ImageParam"},"ImagePricing":{"properties":{"currency":{"type":"string","title":"Currency","description":"Unit of the prices: `credits` (API credits)."},"per":{"type":"string","const":"image","title":"Per","default":"image"},"by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By","description":"The parameter the price depends on (`resolution` / `quality`); null = one price (key `*`)."},"prices":{"additionalProperties":{"type":"string"},"type":"object","title":"Prices","description":"Price per image (no reference images) by that parameter's value."},"per_reference_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Per Reference Image","description":"Models whose price grows with reference images: added per reference image, per image; null = nothing."},"status":{"type":"string","title":"Status","description":"What a credit costs, e.g. `1 API credit = USD 0.006`."}},"type":"object","required":["currency","by","prices","status"],"title":"ImagePricing","description":"Price per image, as decimal strings (exact). A request holds `n` x the price of its\noptions; failed images are given back."},"JsonSchemaFormat":{"properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Name","default":"response"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"type":"object","required":["schema"],"title":"JsonSchemaFormat"},"ModelInfo":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"model","title":"Object","default":"model"},"type":{"type":"string","const":"chat","title":"Type","description":"`chat`: POST /chat/completions (image models: `image`).","default":"chat"},"created":{"type":"integer","title":"Created"},"owned_by":{"type":"string","title":"Owned By"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"capabilities":{"$ref":"#/components/schemas/Capabilities"},"pricing":{"$ref":"#/components/schemas/Pricing"},"unsupported_params":{"items":{"type":"string"},"type":"array","title":"Unsupported Params","description":"Standard parameters this model ignores (reported per call too)."}},"type":"object","required":["id","created","owned_by","name","vendor","context_length","max_output_tokens","capabilities","pricing","unsupported_params"],"title":"ModelInfo"},"ModelList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"anyOf":[{"$ref":"#/components/schemas/ModelInfo"},{"$ref":"#/components/schemas/ImageModelInfo"},{"$ref":"#/components/schemas/VideoModelInfo"},{"$ref":"#/components/schemas/SpeechModelInfo"}]},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ModelList"},"PlatformErrorBody":{"properties":{"error":{"$ref":"#/components/schemas/PlatformErrorDetail"}},"type":"object","required":["error"],"title":"PlatformErrorBody"},"PlatformErrorDetail":{"properties":{"message":{"type":"string","title":"Message"},"type":{"type":"string","title":"Type"},"code":{"type":"string","title":"Code"},"param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Param"},"retryable":{"type":"boolean","title":"Retryable"},"provider":{"anyOf":[{"$ref":"#/components/schemas/ProviderError"},{"type":"null"}]},"request_id":{"type":"string","title":"Request Id","description":"This request's id (also the X-Request-Id header): quote it when reporting a failed call."}},"type":"object","required":["message","type","code","param","retryable","provider","request_id"],"title":"PlatformErrorDetail"},"Pricing":{"properties":{"currency":{"type":"string","const":"credits","title":"Currency","default":"credits"},"per":{"type":"string","const":"1M tokens","title":"Per","default":"1M tokens"},"input":{"type":"string","title":"Input","description":"Uncached input tokens."},"cached_input":{"type":"string","title":"Cached Input","description":"Cached input tokens (part of the prompt tokens)."},"output":{"type":"string","title":"Output","description":"Output tokens, hidden reasoning included."},"cache_write":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Write","description":"Prompt-cache writes (Claude); null = the input price."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"fallback":{"anyOf":[{"$ref":"#/components/schemas/Pricing"},{"type":"null"}],"description":"Claude: the price when the fallback route answers (text-only requests)."}},"type":"object","required":["input","cached_input","output"],"title":"Pricing","description":"API credits per 1M tokens, as decimal strings (exact). 1 API credit = USD 0.006.\nCalls are always charged tokens x these prices."},"PromptTokensDetails":{"properties":{"cached_tokens":{"type":"integer","title":"Cached Tokens","description":"Prompt tokens read from the cache (cached price)."},"cache_write_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cache Write Tokens","description":"Voicica extra (Claude models): prompt tokens written to the cache (cache-write price); null when none."}},"type":"object","required":["cached_tokens"],"title":"PromptTokensDetails"},"ProviderError":{"properties":{"status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"type":"null","title":"Message","description":"Always null: upstream text is not passed."}},"type":"object","required":["status","code"],"title":"ProviderError"},"ReasoningParam":{"properties":{"effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high"]},{"type":"null"}],"title":"Effort"}},"type":"object","title":"ReasoningParam"},"ResponseFormat":{"properties":{"type":{"type":"string","enum":["text","json_object","json_schema"],"title":"Type"},"json_schema":{"anyOf":[{"$ref":"#/components/schemas/JsonSchemaFormat"},{"type":"null"}]}},"type":"object","required":["type"],"title":"ResponseFormat"},"SpeechCapabilities":{"properties":{"max_characters":{"type":"integer","title":"Max Characters","description":"Most characters of `input` (code points)."},"cjk_weight":{"type":"integer","title":"Cjk Weight","description":"Billable characters per Han / kana / hangul character (others: 1)."},"response_formats":{"items":{"type":"string"},"type":"array","title":"Response Formats"},"speed":{"type":"string","title":"Speed","description":"`voice`: each voice's `speed` in GET /audio/voices says what `speed` takes (`range`, `preset` or `none`)."}},"type":"object","required":["max_characters","cjk_weight","response_formats","speed"],"title":"SpeechCapabilities"},"SpeechError":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine code, e.g. `provider_failed`, `timeout`."},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"SpeechError"},"SpeechGeneration":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"audio.speech","title":"Object","default":"audio.speech"},"created":{"type":"integer","title":"Created"},"model":{"type":"string","title":"Model","description":"`voicica/tts`."},"voice":{"type":"string","title":"Voice","description":"The voice's id (`voice_...`)."},"language":{"type":"string","title":"Language","description":"The language it was read in."},"status":{"type":"string","enum":["pending","running","succeeded","failed"],"title":"Status","description":"`pending` (accepted), `running`, then `succeeded` or `failed`."},"response_format":{"type":"string","enum":["mp3","wav"],"title":"Response Format"},"speed":{"type":"string","title":"Speed","description":"The speed used (`1.0`, `fast`, ...)."},"characters":{"type":"integer","title":"Characters"},"billable_characters":{"type":"integer","title":"Billable Characters"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Our copy of the audio, until `expires_at`; null otherwise."},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds","description":"Length of the audio, when it succeeded."},"credits":{"type":"string","title":"Credits","description":"API credits, 4 decimals: what is held while unfinished, what it cost when it succeeded, 0 when it failed (given back)."},"cost_usd":{"type":"string","title":"Cost Usd","description":"`credits` in USD at 0.006 per credit, 6 decimals."},"error":{"anyOf":[{"$ref":"#/components/schemas/SpeechError"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finished At"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At","description":"Unix time after which the audio is deleted (30 days after it was stored); download it before. `url` is null afterwards."},"expired":{"type":"boolean","title":"Expired","default":false},"callback_status":{"anyOf":[{"type":"string","enum":["pending","delivered","failed"]},{"type":"null"}],"title":"Callback Status","description":"With `callback_url`: the delivery of the finished task."}},"type":"object","required":["id","created","model","voice","language","status","response_format","speed","characters","billable_characters","credits","cost_usd"],"title":"SpeechGeneration"},"SpeechModelInfo":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"model","title":"Object","default":"model"},"type":{"type":"string","const":"speech","title":"Type","description":"`speech`: POST /audio/speech (async); voices in GET /audio/voices.","default":"speech"},"created":{"type":"integer","title":"Created"},"owned_by":{"type":"string","title":"Owned By"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"capabilities":{"$ref":"#/components/schemas/SpeechCapabilities"},"pricing":{"$ref":"#/components/schemas/SpeechPricing"}},"type":"object","required":["id","created","owned_by","name","vendor","capabilities","pricing"],"title":"SpeechModelInfo"},"SpeechPricing":{"properties":{"currency":{"type":"string","title":"Currency","description":"`credits` (API credits)."},"per":{"type":"string","const":"1K billable characters","title":"Per","default":"1K billable characters"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price","description":"null: by voice (`credits_per_1k` in GET /audio/voices)."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min","description":"The cheapest voice's price."},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max","description":"The dearest voice's price."},"status":{"type":"string","title":"Status"}},"type":"object","required":["currency","status"],"title":"SpeechPricing","description":"Price per 1,000 billable characters, set by the voice (`credits_per_1k` in GET\n/audio/voices); a request costs billable x price / 1,000, rounded up to 0.0001\ncredit."},"SpeechRequest":{"properties":{"model":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model","description":"`voicica/tts` (the default). The voice decides how it is read and what it costs."},"voice":{"type":"string","maxLength":200,"title":"Voice","description":"A voice id from GET /audio/voices (`voice_...`), or any public community voice as `voice_<32-hex id>` (see `community` there). Cloned voices are not available."},"language":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Language","description":"The language to read in: one of the voice's `languages`. Optional when the voice has only one; required for a community voice."},"input":{"type":"string","maxLength":20000,"minLength":1,"title":"Input","description":"The text (at most `capabilities.max_characters` characters after trimming)."},"speed":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Speed","description":"By the voice's `speed`: a number in its range (`range`), `slow` / `normal` / `fast` (`preset`; 1.0 = `normal`), or nothing / 1.0 (`none`)."},"response_format":{"type":"string","enum":["mp3","wav"],"title":"Response Format","default":"mp3"},"callback_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Callback Url","description":"Public https URL (port 443) we POST the finished task to, signed (header `Voicica-Signature`, like images)."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Optional labels `project`, `node`, `step` (strings), recorded with the call's usage (first 64 characters each). Other keys are ignored."}},"additionalProperties":false,"type":"object","required":["voice","input"],"title":"SpeechRequest","description":"Read a text aloud. Asynchronous only: the answer is the task (202); poll\nGET /audio/speech/{id} (every 2 s) or pass `callback_url`. Unknown fields are refused\n(400). The text is not stored."},"StreamOptions":{"properties":{"include_usage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Usage"}},"type":"object","title":"StreamOptions"},"ToolCall":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","const":"function","title":"Type","default":"function"},"function":{"$ref":"#/components/schemas/FunctionCall"}},"type":"object","required":["id","function"],"title":"ToolCall"},"ToolDef":{"properties":{"type":{"type":"string","const":"function","title":"Type"},"function":{"$ref":"#/components/schemas/FunctionDef"}},"type":"object","required":["type","function"],"title":"ToolDef"},"Usage":{"properties":{"prompt_tokens":{"type":"integer","title":"Prompt Tokens","description":"Input tokens, cached ones included."},"completion_tokens":{"type":"integer","title":"Completion Tokens","description":"Output tokens, hidden reasoning included."},"total_tokens":{"type":"integer","title":"Total Tokens"},"prompt_tokens_details":{"anyOf":[{"$ref":"#/components/schemas/PromptTokensDetails"},{"type":"null"}],"description":"When the upstream reports cached input tokens."},"completion_tokens_details":{"anyOf":[{"$ref":"#/components/schemas/CompletionTokensDetails"},{"type":"null"}],"description":"When the upstream reports reasoning tokens."}},"type":"object","required":["prompt_tokens","completion_tokens","total_tokens"],"title":"Usage"},"VideoCapabilities":{"properties":{"max_prompt_chars":{"type":"integer","title":"Max Prompt Chars"},"first_frame":{"type":"boolean","title":"First Frame","description":"`first_frame` accepted (image to video)."},"last_frame":{"type":"boolean","title":"Last Frame","description":"`last_frame` accepted (needs `first_frame`)."},"max_reference_images":{"type":"integer","title":"Max Reference Images","description":"Most `reference_images` (0 = none)."},"frames_with_references":{"type":"boolean","title":"Frames With References","description":"false: `first_frame` / `last_frame` and `reference_images` cannot be combined."},"audio":{"type":"string","enum":["toggle","always","none"],"title":"Audio","description":"`toggle`: the `audio` parameter switches sound on or off; `always`: every video has sound; `none`: silent."},"ratio_from_first_frame":{"type":"boolean","title":"Ratio From First Frame","description":"With a `first_frame` the video keeps the image's shape (`aspect_ratio` is ignored)."},"typical_seconds":{"type":"integer","title":"Typical Seconds","description":"Typical time to make one video (rough)."}},"type":"object","required":["max_prompt_chars","first_frame","last_frame","max_reference_images","frames_with_references","audio","ratio_from_first_frame","typical_seconds"],"title":"VideoCapabilities"},"VideoError":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine code, e.g. `provider_failed`, `timeout`."},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"VideoError"},"VideoGeneration":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"video.generation","title":"Object","default":"video.generation"},"created":{"type":"integer","title":"Created"},"model":{"type":"string","title":"Model"},"status":{"type":"string","enum":["pending","running","succeeded","failed"],"title":"Status","description":"`pending` (waiting at the provider), `running`, then `succeeded` or `failed`."},"params":{"additionalProperties":{"type":"string"},"type":"object","title":"Params","description":"The options used (defaults filled in)."},"inputs":{"$ref":"#/components/schemas/VideoInputsInfo"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Our copy of the video (MP4), until `expires_at`."},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds","description":"Length of the video, when it succeeded."},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution","description":"The resolution tier, e.g. `720p`."},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"has_audio":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Audio","description":"The video has sound."},"credits":{"type":"string","title":"Credits","description":"API credits, 4 decimals: what is held while unfinished, what it cost when it succeeded, 0 when it failed (given back)."},"cost_usd":{"type":"string","title":"Cost Usd","description":"`credits` in USD at 0.006 per credit, 6 decimals."},"error":{"anyOf":[{"$ref":"#/components/schemas/VideoError"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finished At"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At","description":"Unix time after which the video is deleted (30 days after it was stored); download it before. `url` is null afterwards."},"expired":{"type":"boolean","title":"Expired","default":false},"callback_status":{"anyOf":[{"type":"string","enum":["pending","delivered","failed"]},{"type":"null"}],"title":"Callback Status","description":"With `callback_url`: the delivery of the finished task."}},"type":"object","required":["id","created","model","status","params","inputs","credits","cost_usd"],"title":"VideoGeneration"},"VideoGenerationRequest":{"properties":{"model":{"type":"string","maxLength":100,"title":"Model","description":"A video model id from GET /models."},"prompt":{"type":"string","maxLength":20000,"minLength":1,"title":"Prompt","description":"See the model's limit."},"duration":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Duration","description":"Seconds, one of the model's values; default: its default."},"aspect_ratio":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Aspect Ratio"},"resolution":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Resolution"},"audio":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Audio","description":"Models whose `capabilities.audio` is `toggle`: true / false (or `on` / `off`)."},"first_frame":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"First Frame","description":"Image to start from (public https URL; PNG, JPEG or WebP, at most 10 MB). We fetch and keep a copy for the task."},"last_frame":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Last Frame","description":"Image to end on (needs `first_frame`)."},"reference_images":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Reference Images","description":"Reference images (public https URLs), up to the model's `capabilities.max_reference_images`."},"reference_videos":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Reference Videos","description":"Not available yet (400 `unsupported_parameter`)."},"reference_audios":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Reference Audios","description":"Not available yet (400 `unsupported_parameter`)."},"shots":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Shots","description":"Multi-shot: not available yet (400 `unsupported_parameter`)."},"multi_shots":{"anyOf":[{},{"type":"null"}],"title":"Multi Shots","description":"Not available yet (400 `unsupported_parameter`)."},"callback_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Callback Url","description":"Public https URL (port 443) we POST the finished task to, signed (header `Voicica-Signature`, like images)."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Optional labels `project`, `node`, `step` (strings), recorded with the call's usage (first 64 characters each). Other keys are ignored."}},"additionalProperties":false,"type":"object","required":["model","prompt"],"title":"VideoGenerationRequest","description":"Start a video generation. Asynchronous only: the answer is the task (202); poll\nGET /videos/generations/{id} (every 10 s or more) or pass `callback_url`. Unknown fields\nare refused (400)."},"VideoInputsInfo":{"properties":{"first_frame":{"type":"boolean","title":"First Frame"},"last_frame":{"type":"boolean","title":"Last Frame"},"reference_images":{"type":"integer","title":"Reference Images"}},"type":"object","required":["first_frame","last_frame","reference_images"],"title":"VideoInputsInfo"},"VideoModelInfo":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"model","title":"Object","default":"model"},"type":{"type":"string","const":"video","title":"Type","description":"`video`: POST /videos/generations (async).","default":"video"},"created":{"type":"integer","title":"Created"},"owned_by":{"type":"string","title":"Owned By"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"capabilities":{"$ref":"#/components/schemas/VideoCapabilities"},"params":{"items":{"$ref":"#/components/schemas/VideoParam"},"type":"array","title":"Params"},"pricing":{"$ref":"#/components/schemas/VideoPricing"}},"type":"object","required":["id","created","owned_by","name","vendor","capabilities","params","pricing"],"title":"VideoModelInfo"},"VideoParam":{"properties":{"name":{"type":"string","title":"Name","description":"Request field: `duration` (seconds), `aspect_ratio`, `resolution` or `audio` (`on` / `off`; send true / false or `on` / `off`)."},"values":{"items":{"type":"string"},"type":"array","title":"Values"},"default":{"type":"string","title":"Default"}},"type":"object","required":["name","values","default"],"title":"VideoParam"},"VideoPrice":{"properties":{"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution","description":"null: the price does not depend on it."},"audio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio","description":"`on` / `off`; null: the price does not depend on it."},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration","description":"Per-video prices that depend on the length: the seconds."},"price":{"type":"string","title":"Price","description":"Credits, exact decimal string."}},"type":"object","required":["resolution","audio","price"],"title":"VideoPrice"},"VideoPricing":{"properties":{"currency":{"type":"string","title":"Currency","description":"`credits` (API credits)."},"per":{"type":"string","enum":["second","video"],"title":"Per"},"prices":{"items":{"$ref":"#/components/schemas/VideoPrice"},"type":"array","title":"Prices"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"E.g. how shorter videos are charged."},"status":{"type":"string","title":"Status"}},"type":"object","required":["currency","per","prices","status"],"title":"VideoPricing","description":"What one video costs: `per` second of video (price x `duration`) or per video. The\nsame credits the Voicica studio charges for the same options; a failed video is given\nback."},"VoiceInfo":{"properties":{"id":{"type":"string","title":"Id","description":"What POST /audio/speech takes as `voice` (`voice_...`)."},"object":{"type":"string","const":"voice","title":"Object","default":"voice"},"name":{"type":"string","title":"Name"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender","description":"`female`, `male`, `neutral` or null (unknown)."},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","description":"Languages it reads (`en`, `zh-TW`, ...): POST /audio/speech `language`."},"samples":{"items":{"$ref":"#/components/schemas/VoiceSample"},"type":"array","title":"Samples","description":"One per language."},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"speed":{"$ref":"#/components/schemas/VoiceSpeed"},"credits_per_1k":{"type":"string","title":"Credits Per 1K","description":"Its price: API credits per 1,000 billable characters (see `voicica/tts` in GET /models for the counting rule)."},"community":{"type":"boolean","title":"Community","description":"A public community voice."}},"type":"object","required":["id","name","gender","languages","samples","tags","speed","credits_per_1k","community"],"title":"VoiceInfo"},"VoiceList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/VoiceInfo"},"type":"array","title":"Data"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","description":"Languages with voices (before filtering)."},"community":{"anyOf":[{"$ref":"#/components/schemas/CommunityVoicesInfo"},{"type":"null"}],"description":"Community voices: null when unavailable."}},"type":"object","required":["data","languages"],"title":"VoiceList"},"VoiceSample":{"properties":{"language":{"type":"string","title":"Language"},"locale":{"type":"string","title":"Locale","description":"What it speaks in this language, e.g. `en-GB`."},"sample_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Url","description":"A short sample clip (free); null if none."}},"type":"object","required":["language","locale"],"title":"VoiceSample"},"VoiceSpeed":{"properties":{"kind":{"type":"string","enum":["range","preset","none"],"title":"Kind"},"min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max"},"presets":{"items":{"type":"string"},"type":"array","title":"Presets"},"default":{"type":"string","title":"Default"}},"type":"object","required":["kind","default"],"title":"VoiceSpeed"},"VoicicaInfo":{"properties":{"ignored_params":{"items":{"type":"string"},"type":"array","title":"Ignored Params","description":"Request fields this model does not honour: dropped, not an error."},"json_mode":{"anyOf":[{"type":"string","enum":["native","fallback"]},{"type":"null"}],"title":"Json Mode","description":"With `response_format` json_object / json_schema: the upstream's own structured output, or our prompt constraint + validation."}},"type":"object","required":["ignored_params"],"title":"VoicicaInfo"}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your Voicica API key (`vca_...`)."}}},"externalDocs":{"description":"Voicica API documentation","url":"https://voicica.ai/docs/api"}}