API Doc-CometAPI
HomeDashBoardModel Marketplace
HomeDashBoardModel Marketplace
Discord_Support
  1. self-developed
  • How to Use CometAPI?
  • šŸš€ Overview
    • Quick Start
    • Important Guidelines
    • Release Notes
    • Quickly request CometAPI via ApiDog
    • Models
  • šŸ’¬ Text Models
    • Chat
    • Responses
    • Anthropic Messages
    • Gemini Generating Content
    • Embeddings
  • šŸ–¼ļø Image Models
    • OpenAI
      • gpt-4o-image generates image
      • Images
      • Image Editing (gpt-image-1)
    • Gemini
      • Guide to calling gemini-3-pro-image (Nano Banana)
      • Gemini generates image
    • Midjourney
      • Midjourney Quick Start: Complete Image Generation Workflow in One Go
      • Task Fetching API
        • List by Condition
        • Fetch Single Task (most recommended)
      • Imagine
      • Submit Video
      • Submit Editor
      • Action (UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      • Blend (image -> image)
      • Describe (image -> text)
      • Modal (Area Redesign & Zoom)
    • Replicate(image)
      • Create Predictions - General
      • replicate query
    • seededit/seedream
      • bytedance-image-generation(seedream)
      • bytedance-Image Editing (seededit)
    • bria
      • Generate Image
      • Generate Vector Graphics - Base (Beta)
      • Image Editing
      • Query Status
    • Flux(images)
      • flux generate image
      • flux query
    • Hunyuan3D
  • šŸ“ŗ Video Models
    • sora-2
      • official
        • Create video
        • Remix video
        • Retrieve video
        • Retrieve video content
      • self-developed
        • Create video
          POST
        • Retrieve video
          GET
    • veo3
      • self-developed
        • Veo3 Async Generation
        • Veo3 Retrive
      • veo3-chat format
      • Submit video generation task
      • Query video generation status
    • kling (video)
      • callback_url
      • Multimodal Video Editing
        • Initialize Video for Editing
        • Add Video Selection
        • Delete Video Selection
        • Clear Video Selection
        • Preview Selected Video Area
        • Create Task
      • Text to Video
      • Image to Video
      • Multi-Image To Video
      • Video Extension
      • Avatar
      • Lip-Sync
      • [Counterpart] Creating Tasks
      • Video Effects
      • Text to Audio
      • Video to Audio
      • TTS
      • Image Generation
      • Multi-Image to Image
      • Image Expansion
      • Image Recognize
      • Virtual Try-On
      • Individual queries
    • runway(video)
      • official format
        • runway images raw video
        • Generate a video from a video
        • Generate an image from text
        • Upscale a video
        • Control a character
        • runway to get task details
      • Reverse Format
        • generate(text)
        • generate(Reference images)
        • Video to Video Style Redraw
        • Act-one Expression Migration
        • feed-get task
    • bytedance
      • bytedance-video
      • bytedance-video get
    • MiniMax Conch(video)
      • MiniMax Conch Official Documentation
      • MiniMax Conch Generation
      • MiniMax Conch Query
      • MiniMax Conch Download
  • šŸŽµ Music Models
    • Suno
      • Setting suno Version
      • Suno API Scenario Application Guide
      • Generate lyrics
      • Generate music clip
      • Upload clip
      • Submit concatenation
      • Full Track Audio Separation
      • Single Track Audio Separation
      • Create New Persona
      • add style tags
      • Single task query
      • Generate mp4 mv video
      • Timing: lyrics, audio timeline
      • Get wav format file
      • Get midi
      • Batch query tasks
  • šŸ”Š Audio Models
    • Realtime
    • Create speech
    • Create transcription
    • Create translation
  • 🧩 Integration Guides
    • CodeX
    • LiteLLM
    • Dify
    • Make
    • n8n
    • Lobe-Chat
    • COZE
    • Zapier
    • Activepieces
    • LlamaIndex
    • Continue
    • FlowiseAI
    • Chatbox
    • CherryStudio
    • AnythingLLM
    • LangChain
    • BuildShip
    • gptme
    • Immersive Translation
    • Cline
    • Eudic Translation
    • ChatHub
    • OpenAI Translator
    • ChatAll Translation
    • Pot Translation
    • Zotero
    • NEXT CHAT (ChatGPT Next Web)
    • Obsidian's Text Generator Plugin
    • librechat
    • utools-ChatGPT Friend
    • avante.nvim
    • Open WebUI
    • GPT Academic Optimization (gpt_academic)
    • OpenManus
    • IntelliJ Translation Plugin
    • FastGPT
    • n8n Local Deployment
  • āš ļø Errors
    • Error Codes & Handling
  • šŸ“ Code Examples
    • Text-to-Image Generation
    • Image-to-image generation URL upload
    • Regular Post Text Conversation
    • OpenAI Official Library Usage Example
    • Streamed Output
    • Json Fixed Format Output Code Display
    • Embedding code example
    • o1-preview Model Code Example
    • LangChain Usage Example (Successful Test Date: 2024-11-25)
    • Openai dall-e-3 & flux series drawing model
    • gpt, claude, gemini multimodal network image parsing example
    • Multimodal PDF File Parsing Examples for GPT, Claude, and Gemini
    • Code example
  • šŸ„šŸ¼ā€ā™€ļø Best Practices
    • Midjourney Best Practices
    • Retry Logic Documentation for CometAPI and OpenAI Official API
    • Runway Best Practices
    • Claude Code Installation and Usage Guide
    • Gemini CLI Installation and Usage Guide
    • Codex Usage Guide
    • CometAPI Account Balance Query API Usage Instructions
  • šŸ’³ Pricing & Billing
    • About Pricing
  • šŸ¤šŸ¼ Support
    • Help Center
    • Interface Stability
    • Privacy policy
    • Terms of service
    • Common Misconceptions
    • Confusion about use
HomeDashBoardModel Marketplace
HomeDashBoardModel Marketplace
Discord_Support
  1. self-developed

Create video

POST
https://api.cometapi.com/v1/videos
Maintainer:Not configured

Overview#

Although this endpoint shares the videos path, we provide two distinct formats for differentiation:
Official Format - OpenAI's official API format
Sora-2 Custom Format Documentation - CometAPI's unique enhanced format

Supported Models#

Currently supported model IDs:
sora-2-all - Supported video duration: 10 or 15 seconds (max 15 seconds)
sora-2-pro-all - Supported video duration: 10, 15, or 25 seconds (max 25 seconds)

Key Differences: Custom Format vs Official Format#

Compared to the official format, CometAPI's custom endpoint has the following differences:
1.
Duration Limits: Models with the -all suffix only support specific duration values for the seconds parameter:
sora-2-all: Only supports 10 or 15 seconds (25 seconds not supported) - Fixed rate of $0.08 per generation
sora-2-pro-all: 10, 15, or 25 seconds - Fixed rate of $0.8 per generation
2.
Pricing Structure: Pricing differs from official format models
āš ļø Resolution Warning
When using sora-2-pro-all with seconds=25, there is a high chance that the requested 1024x1792 or 1792x1024 resolution cannot be output, and instead a lower resolution of 720x1280 or 1280x720 will be returned. To ensure high-resolution output, we recommend using 10 or 15 second durations.

Character Consistency Feature#

Use the character_url and character_timestamps parameters to maintain character consistency in generated videos.
character_url string optional
URL link to a reference video for character extraction. The system will extract character features from this video and apply them to the newly generated video.
āš ļø The reference video must not contain real humans, otherwise the task will fail. We recommend using animated, cartoon, or virtual character videos.
character_timestamps string optional
Specifies the time range where the character appears in the reference video, format: {start},{end} (in seconds).
Example: "1,8" means extracting character features from second 1 to second 8 of the video.
Example Request:
šŸ“‹ Storyboard Mode
The endpoint supports Storyboard functionality for creating continuous videos with multiple shots. When using storyboard, the prompt must strictly follow this format:
Shot 1:\nduration: 7.5sec\nScene: Airplane taking off\n\nShot 2:\nduration: 7.5sec\nScene: Airplane landing
Format Requirements:
Each shot starts with Shot N: (N is the shot number)
Use duration: Xsec to specify shot duration
Use Scene: to describe shot content
Separate shots with blank lines

Important Notes#

āš ļø Asynchronous Processing
Video generation takes a long time, so it uses asynchronous mode. After creating a task, the system will immediately return a task ID. You need to use the query endpoint to get the generation progress and results.
āš ļø Content Policy
Generated video content must comply with OpenAI's usage policies. Generation of illegal, violent, pornographic, or copyright-infringing content is strictly prohibited.
🌟 Note:
Since this endpoint is implemented through technical means, please use sora-2-all or sora-2-pro-all model names, otherwise the actual call will be billed per second according to the official pricing.

Request

Header Params

Body Params multipart/form-data

Responses

🟢200Successful Response
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cometapi.com/v1/videos' \
--header 'Authorization: ' \
--form 'prompt="cat"' \
--form 'model="sora-2-pro-all"' \
--form 'seconds="10"' \
--form 'size="720x1280"' \
--form 'character_url="https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4"' \
--form 'character_timestamps="1,3"'
Response Response Example
{
    "id": "video_68e688d4950481918ec389280c2f78140fcb904657674466",
    "object": "video",
    "created_at": 1759938772,
    "status": "queued",
    "completed_at": null,
    "error": null,
    "expires_at": null,
    "model": "sora-2",
    "progress": 0,
    "remixed_from_video_id": null,
    "seconds": "4",
    "size": "720x1280"
}
Modified atĀ 2025-12-17 05:53:33
Previous
Retrieve video content
Next
Retrieve video
Built with