> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT Image 1.5 Text to Image

> Turn written image concepts into square, portrait, or landscape visuals with GPT Image 1.5, with up to four variations per request.

<Tip>
  1. Submit the request with `VIDGO_API_KEY`. A `task_id` is returned immediately. Keep it until the task reaches `finished` or `failed`.
  2. Use [Query Task Status](/api-manual/task-management/status) to retrieve the result. If you provide a `callback_url`, Vidgo sends the result to your [webhook](/api-manual/task-management/webhooks) when the task finishes or fails.
</Tip>

# GPT Image 1.5 Text to Image

Turn written image concepts into square, portrait, or landscape visuals with GPT Image 1.5, with up to four variations per request.

## Available Models

* **openai/gpt-image-1.5/text-to-image** - Generate images from text prompts.

## Output Options

### Image Size

* `size`: Optional. Accepted values: `1024x1024`, `1024x1536`, `1536x1024`. Default: `1024x1024`.

### Image Count

* `n`: Optional. Number of images to generate. Accepted values: `1`, `2`, `3`, `4`. Default: `1`.

## Key Features

* Generate images from text prompts.
* Control the number of output images with `n`.

## Advanced Parameters

Set `model` and optional `callback_url` at the request root. Place all workflow parameters, including output options, inside `input`.

### Prompt

* `prompt`: Required. Describe the desired image. Length: **1-1,000 characters**.
* Include at least one non-whitespace character.


## OpenAPI

````yaml api-manual/image-series/openai-gpt-image-1-5-text-to-image.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - GPT Image 1.5 Text to Image
  description: >-
    Turn written image concepts into square, portrait, or landscape visuals with
    GPT Image 1.5, with up to four variations per request.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Image Series
      summary: GPT Image 1.5 Text to Image
      description: >-
        Submit a GPT Image 1.5 task with model and optional callback_url at the
        request root, and generation parameters inside input.
      operationId: submit_openai_gpt_image_1_5_text_to_image
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              properties:
                model:
                  type: string
                  example: openai/gpt-image-1.5/text-to-image
                  enum:
                    - openai/gpt-image-1.5/text-to-image
                input:
                  type: object
                  required:
                    - prompt
                  properties:
                    prompt:
                      type: string
                      maxLength: 1000
                      minLength: 1
                      description: >-
                        Describe the image to generate using 1–1,000 characters,
                        including at least one non-whitespace character.
                    size:
                      type: string
                      enum:
                        - 1024x1024
                        - 1024x1536
                        - 1536x1024
                      default: 1024x1024
                      description: >-
                        Output image dimensions in pixels. Defaults to
                        1024x1024.
                    'n':
                      type: integer
                      enum:
                        - 1
                        - 2
                        - 3
                        - 4
                      minimum: 1
                      description: Number of output images, from 1 to 4. Defaults to 1.
                      default: 1
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: >-
                    Public HTTP(S) URL that receives a POST notification when
                    the task reaches finished or failed.
              description: >-
                Set model and optional callback_url at the request root. Place
                generation parameters inside input.
            examples:
              basic:
                summary: Basic workflow
                value:
                  model: openai/gpt-image-1.5/text-to-image
                  input:
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    size: 1024x1024
                    'n': 1
              callback:
                summary: Receive a completion callback
                value:
                  model: openai/gpt-image-1.5/text-to-image
                  input:
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    size: 1024x1024
                    'n': 1
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: Task submitted
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - data
                properties:
                  code:
                    type: integer
                    enum:
                      - 200
                  data:
                    type: object
                    required:
                      - task_id
                      - status
                      - created_time
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - not_started
                          - running
                          - finished
                          - failed
                      created_time:
                        type: string
                        format: date-time
              example:
                code: 200
                data:
                  task_id: task-unified-example
                  status: running
                  created_time: '2026-09-10T08:00:00'
        '400':
          description: Request validation or account balance error
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: Unknown or disabled model
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: Request timed out
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: Invalid JSON or non-object request body
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: Rate or API key credit limit exceeded
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: Task creation error
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: Model service temporarily unavailable
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Use VIDGO_API_KEY.

````