API Doc-CometAPI
English
  • English
  • Русский
HomeDashBoardModel Marketplace
HomeDashBoardModel Marketplace
Discord_Support
English
  • English
  • Русский
  1. bria
  • 🚀 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)
    • Midjourney
      • Midjourney Quick Start: Complete Image Generation Workflow in One Go
      • Task Fetching API
        • List by Condition
        • Fetch Single Task (most recommended)
      • Submit Editor
      • Imagine
      • Submit Video
      • Action (UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      • Blend (image -> image)
      • Describe (image -> text)
      • Modal (Area Redesign & Zoom)
    • Replicate(image)
      • Create Predictions - General
      • replicate query
      • Create Task -flux-kontext-pro、max
      • Create Task -flux-1.1-pro
      • Create Task -flux-1.1-pro-ultra
    • seededit/seedream
      • bytedance-Image Editing (seededit)
      • bytedance-image-generation(seedream)
    • bria
      • Generate Image
        POST
      • Generate Vector Graphics - Base (Beta)
        POST
      • Image Editing
        POST
      • Query Status
        GET
    • Gemini
      • Guide to calling gemini-2.5-flash-image (Nano Banana)
      • Gemini generates image
    • Hunyuan3D
      POST
  • 📺 Video Models
    • veo3
      • 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
      • Image Generation Video
      • Generating images
      • Expanded
      • Text Generation Video
      • Multi-Image To Video
      • Multi-Image to Image
      • Video Extension
      • virtual try-on
      • [Counterpart] Face Recognition
      • [Counterpart] Creating Tasks
      • Kling Image Recognize
      • Kling TTS
      • Kling Avatar
      • lip sync
      • effects
      • Video to audio
      • Text to audio
      • 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
    • sora-2
      • official
        • Create video
        • Remix video
        • Retrieve video
        • Delete video
        • Retrieve video content
      • All Asynchronous-15s
        • Retrieve video
        • Create video
  • 🎵 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
    • 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
  1. bria

Generate Image

POST
https://api.cometapi.com/bria/text-to-image
Maintainer:Not configured
This image generation pipeline allows developers to integrate high-quality photo-realistic artistic-style image generation capabilities into their applications It leverages Br’s proprietary text-to foundational model, combined with additional enhancement to optimize output quality and provide strong control. The pipeline supports native 1MP resolution generation and can adapt to various aspect ratios to meet different requirements.
Note:
Our current interface is equivalent to https://engine.prod.bria-api.com1/text-to-image/base/3.2
For more details, you can refer to

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cometapi.com/bria/text-to-image' \
--header 'Authorization: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "a book",
    "num_results": 2,
    "sync": false
}'
Response Response Example
{
    "result": [
        {
            "urls": [
                "https://d1ei2xrl63k822.cloudfront.net/api/generate_image/a_book_65156a28-bab4-11f0-9626-52d02adfe642/seed_1518021626.png?Expires=1762999240&Signature=PnFYasb6zXjPYeyLnGq0TteDgOZ3NDwFpBmsdRgkkG~j-iEdKZd-MFjxqDckf5eC63i30bUlGkU97tzHIHANj7Uq2H4PPYVhjTU2tMD~IwiQmZDUCf05ZwneblahGyTMKHwPioCLRexZ0Vt4~xUA-APdzTTXgP9G8CDq3AX6aaXLetHYHqMpdvYN-T0il0ueuIepc~cWbfaassJbfzJ1cP5eIUUxwpMQZnRSPiilTIdY1zlIla4X0X8kw~sSb5V5AyLNb8vcL5x8hx5ORiKGByb-5APY0VOnHJVuvA9M8B260b6WeqgNZ33JVqwpf2v-HPCeltTIDl0QurSfdasBkQ__&Key-Pair-Id=K2UXO1NPZVKO7N"
            ],
            "seed": 1518021626,
            "uuid": "65156a28-bab4-11f0-9626-52d02adfe642_1518021626"
        },
        {
            "urls": [
                "https://d1ei2xrl63k822.cloudfront.net/api/generate_image/a_book_65156a28-bab4-11f0-9626-52d02adfe642/seed_1518021627.png?Expires=1762999240&Signature=kL0R8jt8~gKozngK7N-0Lxw8iGl2myyDUZG8O2qoZUg4WPUkNa13zb3gndlLuo1t3bVbI-CLU15NfwiWx-7wCxcoiFKeWsy7V3jVZw3CvdMW5qfrdsab7HuOCU-YUhxitwZ6K5LFtz9ONh2UnmYiTtkoXCm4m1X4o8FzpdmfPYD907OXiC0z-P9H8gG8ESIfQlJi8xDXW3t6KlTm5iGXy31pUfC397glMQ1fVii73CAzFCiNRtxLksch8TNEDCSEwbUK~4R2-3avaQbqis1yozaw0YP1yzfKmE-Z5-feD8hqlHkz65-lyYarprXeCTQHNu2L2eZ3zEA0sospM-rgqA__&Key-Pair-Id=K2UXO1NPZVKO7N"
            ],
            "seed": 1518021627,
            "uuid": "65156a28-bab4-11f0-9626-52d02adfe642_1518021627"
        }
    ]
}
Modified at 2025-11-12 09:15:55
Previous
bytedance-image-generation(seedream)
Next
Generate Vector Graphics - Base (Beta)
Built with