The latest video generation model from OpenAI, Sora-2, can be integrated into any Chatbot using the v1/chat/completions format API. All Chat interfaces of 302 support asynchronous responses; simply add async in the query.Pricing: Limited time free
Request
Query Params
Header Params
Body Params application/json
Example
{"model":"sora-2","messages":[{"role":"user","content":"@sama fly in the sky"}],"stream":true}
{"id":"chatcmpl-123","object":"chat.completion","created":1677652288,"choices":[{"index":0,"message":{"role":"assistant","content":"\n\nHello there, how may I assist you today?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":9,"completion_tokens":12,"total_tokens":21}}