Zero2Launch API
  • Welcome
  • Chat & Text Generation
  • Text to Speech & Transcription
  • Voice Generation (with Link)
  • AI Image Generator
  • Models
Powered by GitBook
On this page

AI Image Generator

PreviousVoice Generation (with Link)NextModels

AI Image Generator

  • POST/download-image/data
  • POST/download-image/url
  • POSTAnalyze image content using a vision-language model
post
Authorizations
Header parameters
X-API-KeystringRequired

Your API key

Body
promptstringRequired

Image description prompt

widthintegerOptional

Image width

Default: 1024
heightintegerOptional

Image height

Default: 1024
seedintegerOptional

Random seed

Default: 42
modelstringOptional

Image generation model

Default: flux
Responses
200
Success
post
POST /download-image/data HTTP/1.1
Host: api.zero2launch.com
X-API-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 62

{
  "prompt": "text",
  "width": 1,
  "height": 1,
  "seed": 1,
  "model": "text"
}
200

Success

No content

post
Authorizations
Header parameters
X-API-KeystringRequired

Your API key

Body
promptstringRequired

Image description prompt

widthintegerOptional

Image width

Default: 1024
heightintegerOptional

Image height

Default: 1024
seedintegerOptional

Random seed

Default: 42
modelstringOptional

Image generation model

Default: flux
Responses
200
Success
post
POST /download-image/url HTTP/1.1
Host: api.zero2launch.com
X-API-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 62

{
  "prompt": "text",
  "width": 1,
  "height": 1,
  "seed": 1,
  "model": "text"
}
200

Success

No content

Analyze image content using a vision-language model

post
Authorizations
Body
modelstringRequired

Model name (e.g. "openai")

Default: openai
max_tokensintegerOptionalDefault: 300
seedintegerOptional

Optional seed for deterministic generation

Responses
200
Success
application/json
400
Bad Request
500
Internal Server Error
post
POST /analyze-image HTTP/1.1
Host: api.zero2launch.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 176

{
  "model": "openai",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What is in this image?"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "your_url"
          }
        }
      ]
    }
  ],
  "max_tokens": 300
}
{
  "result": "text"
}