{"modality":"audio","operations":["text-to-speech"],"commonArguments":["prompt","outputFormat"],"modelSpecificArguments":["voice","speed","systemPrompt"],"defaults":{"outputFormat":"mp3"},"capabilities":{"resolutions":[],"aspectRatios":[],"references":{"types":[],"maximum":{}},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"always-on","countMaximum":1},"promptRequired":true,"promptMaximum":4096,"verification":"documented","sources":[{"url":"https://developers.openai.com/api/docs/models/gpt-4o-mini-tts","checkedAt":"2026-12-01"}],"notices":["Documented OpenAI text-to-speech schema (/v1/audio/speech). Billing is token-based ($0.60 / 1M text input tokens + $12.00 / 1M audio output tokens); no flat per-request price is qualified."],"modelId":"openai/gpt-4o-mini-tts","operation":"text-to-speech","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"prompt":{"type":"string","maxLength":100000,"minLength":1,"pattern":"\\S"},"outputFormat":{"type":"string","enum":["mp3","wav"],"default":"mp3"},"voice":{"type":"string","minLength":1,"maxLength":120},"speed":{"type":"number","minimum":0.25,"maximum":4},"systemPrompt":{"type":"string","maxLength":50000}},"additionalProperties":false,"allOf":[{"not":{"required":["size","resolution"]}},{"not":{"required":["size","aspectRatio"]}}],"required":["prompt"],"x-opengen":{"modelId":"openai/gpt-4o-mini-tts","operation":"text-to-speech","capabilities":{"resolutions":[],"aspectRatios":[],"references":{"types":[],"maximum":{}},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"always-on","countMaximum":1},"notices":["Documented OpenAI text-to-speech schema (/v1/audio/speech). Billing is token-based ($0.60 / 1M text input tokens + $12.00 / 1M audio output tokens); no flat per-request price is qualified.","Runtime validation also checks model-specific combinations, media contents and regional route restrictions."],"sources":[{"url":"https://developers.openai.com/api/docs/models/gpt-4o-mini-tts","checkedAt":"2026-12-01"}]}},"examples":{"request":{"modelId":"openai/gpt-4o-mini-tts","operation":"text-to-speech","input":{"outputFormat":"mp3","prompt":"Describe the desired result."},"billing":"managed"},"generate":{"operationId":"media.generate","input":{"modelId":"openai/gpt-4o-mini-tts","operation":"text-to-speech","input":{"outputFormat":"mp3","prompt":"Describe the desired result."},"billing":"managed"},"idempotencyKey":"REPLACE_WITH_SAVED_IDEMPOTENCY_KEY"},"cli":"opengen generate --input request.json --idempotency-key \"$OPENGEN_IDEMPOTENCY_KEY\"","placeholders":[],"notices":["Template only. Replace owned asset placeholders after upload prepare/PUT/complete; edit the prompt before submitting.","Inspect published route pricing, regional restrictions and budget before authorizing a separate billable submission. Persist a unique idempotency key with the request before submitting.","Managed billing is explicit in this example. Select BYOK only when the user chooses their provider account as payer; unknown direct charges cannot be capped by OpenGen."]}}