### POST /v1/chat/completions Source: https://6ibmqmipvf.apifox.cn/363752684e0/index This endpoint processes a Sora video URL to output a direct, watermark-free link. It's designed for compatibility, using 'sora_url' as the model. ```APIDOC ## POST /v1/chat/completions ### Description Outputs a direct, watermark-free link for a given Sora video. This endpoint operates in a compatible chat mode, expecting `sora_url` as the model identifier. ### Method POST ### Endpoint /v1/chat/completions ### Parameters #### Header Parameters - **Authorization** (string) - Optional - API key for authentication. Example: `Bearer {{YOUR_API_KEY}}` #### Request Body - **model** (string) - Required - The parsing model. Use `sora_url`. - **messages** (array) - Required - An array of message objects defining the chat. - **role** (string) - Required - The role in the chat format (e.g., 'user'). - **content** (string) - Required - The Sora video post URL. ### Request Example ```json { "model": "sora_url", "messages": [ { "role": "user", "content": "https://sora.chatgpt.com/p/s_68f6140d88a881911111111111111a6b5c803d4e147b6c" } ] } ``` ### Response #### Success Response (200) - **id** (string) - Unique identifier for the response. - **object** (string) - Type of the object (e.g., 'chat.completion'). - **created** (integer) - Timestamp of creation. - **model** (string) - The model used for processing. - **choices** (array) - An array of completion choices. - **finish_reason** (string) - Reason for finishing the generation. - **index** (integer) - Index of the choice. - **message** (object) - The message content. - **role** (string) - Role of the message sender. - **content** (string) - The generated content (e.g., the direct video link). - **links** (object) - Various links related to the video. - **gif** (string) - URL for a GIF preview. - **text** (string) - Textual representation or description. - **id** (string) - Identifier for the video. - **mp4** (string) - Direct URL for the MP4 video. - **mp4_wm** (string) - URL for the MP4 video with watermark. - **md** (string) - Markdown formatted link. - **thumbnail** (string) - URL for the video thumbnail. - **usage** (object) - Token usage information. - **completion_tokens** (integer) - Number of tokens used for completion. - **total_tokens** (integer) - Total tokens used. - **prompt_tokens** (integer) - Number of tokens used for the prompt. - **post_id** (string) - The ID of the original post. - **original_input** (string) - The original input URL provided. - **post_info** (object) - Information about the original post. - **attachments_count** (integer) - Number of attachments. - **view_count** (integer) - Number of views. - **like_count** (integer) - Number of likes. - **title** (string) - Title of the post. #### Response Example ```json { "id": "chatcmpl-12345", "object": "chat.completion", "created": 1677652288, "model": "sora_url", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "https://example.com/path/to/your/watermark_free_video.mp4" }, "finish_reason": "stop" } ], "links": { "gif": "https://example.com/gif.gif", "text": "Video Link", "id": "video123", "mp4": "https://example.com/path/to/your/watermark_free_video.mp4", "mp4_wm": "https://example.com/path/to/your/watermarked_video.mp4", "md": "[Video Link](https://example.com/path/to/your/watermark_free_video.mp4)", "thumbnail": "https://example.com/thumbnail.jpg" }, "usage": { "completion_tokens": 10, "total_tokens": 20, "prompt_tokens": 10 }, "post_id": "post_abc", "original_input": "https://sora.chatgpt.com/p/s_68f6140d88a881911111111111111a6b5c803d4e147b6c", "post_info": { "attachments_count": 1, "view_count": 1000, "like_count": 50, "title": "Example Video Title" } } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.