{"openapi":"3.0.3","info":{"title":"CreoHub API","version":"2026-11-05","description":"Prepaid API for text, video, image, avatar, upscale and speech models. Pays from the account balance or subscription credits (key wallet: auto, balance, credits). Shared guide: /v1/llms.txt. One model: /v1/models/{model_id}/llms.txt. MCP server for agents: https://api.creohub.ai/mcp"},"servers":[{"url":"https://api.creohub.ai/v1"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Key creohub_live_… or Bearer creohub_live_…"}}},"paths":{"/":{"get":{"summary":"Service descriptor: what CreoHub API is, where the docs and the MCP server are. No key needed.","responses":{"200":{"description":"descriptor"}}}},"/account":{"get":{"summary":"Balance, subscription credits, open holds, key limit and webhook secret. Not rate limited.","security":[{"apiKey":[]}],"responses":{"200":{"description":"account"},"403":{"description":"account_inactive"}}}},"/account/billing":{"get":{"summary":"Same as /account; credits.current_balance and credits.currency for balance widgets","security":[{"apiKey":[]}],"parameters":[{"name":"expand","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"account"}}}},"/models":{"get":{"summary":"Model catalog with prices and price_tiers","responses":{"200":{"description":"models"}}}},"/models/{model_id}/schema":{"get":{"summary":"Input and output JSON Schema of one model: required, enum, default","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"schema"},"404":{"description":"unknown_model"},"503":{"description":"schema_unavailable"}}}},"/models/{model_id}/llms.txt":{"get":{"summary":"One model as plain text: price, fields, defaults and a ready-to-run request","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"text"},"404":{"description":"unknown_model"}}}},"/llms.txt":{"get":{"summary":"Guide for agents and the live catalog","responses":{"200":{"description":"text"}}}},"/estimate":{"post":{"summary":"Price a request without starting it","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"price"},"400":{"description":"unknown_model or unpriceable"}}}},"/chat/completions":{"post":{"summary":"Text completion. Non-stream JSON, or text/event-stream when stream is true.","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"completion"},"400":{"description":"unknown_model or bad_messages"}}}},"/run/{model_id}":{"post":{"summary":"Submit and wait up to 90s for the result. Returns 202 if still running.","security":[{"apiKey":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"webhook_url","in":"query","schema":{"type":"string","format":"uri"}},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"completed"},"202":{"description":"still running"}}}},"/queue/{model_id}":{"post":{"summary":"Submit a generation. Returns status_url, response_url and cancel_url.","security":[{"apiKey":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"webhook_url","in":"query","schema":{"type":"string","format":"uri"},"description":"Public callback URL"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"idempotent replay"},"202":{"description":"queued"}}}},"/requests":{"get":{"summary":"Recent requests for this key","security":[{"apiKey":[]}],"responses":{"200":{"description":"list"}}}},"/requests/{request_id}/status":{"get":{"summary":"Queue status","security":[{"apiKey":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"status"}}}},"/requests/{request_id}/response":{"get":{"summary":"Model output with signed media URLs. 409 until COMPLETED.","security":[{"apiKey":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"output"},"409":{"description":"request_not_ready"}}}},"/requests/{request_id}":{"get":{"summary":"Request with price and output_urls","security":[{"apiKey":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"request"}}}},"/requests/{request_id}/cancel":{"post":{"summary":"Cancel. 200 OK: left the queue, hold returned. 202 CANCELLATION_REQUESTED: running, charged only if a result comes out. 400 ALREADY_COMPLETED.","security":[{"apiKey":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"202":{"description":"CANCELLATION_REQUESTED"},"400":{"description":"ALREADY_COMPLETED"},"409":{"description":"not_cancellable"},"503":{"description":"cancel_unavailable"}}},"put":{"summary":"Cancel. 200 OK: left the queue, hold returned. 202 CANCELLATION_REQUESTED: running, charged only if a result comes out. 400 ALREADY_COMPLETED.","security":[{"apiKey":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"202":{"description":"CANCELLATION_REQUESTED"},"400":{"description":"ALREADY_COMPLETED"},"409":{"description":"not_cancellable"},"503":{"description":"cancel_unavailable"}}}},"/files":{"post":{"summary":"Upload an input file. Returns file_id.","security":[{"apiKey":[]}],"responses":{"201":{"description":"file_id"}}}},"/requests/{request_id}/output/{index}":{"get":{"summary":"Download one output. Signed exp and sig, or the owning key.","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer"}},{"name":"exp","in":"query","schema":{"type":"integer"}},{"name":"sig","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"bytes"},"410":{"description":"expired"}}}}}}