> ## 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

> High-quality image generation and editing with GPT Image 1.5

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the result through the unified [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) endpoint.

Generate high-quality images using GPT Image 1.5 models. Supports text-to-image, image-to-image, and advanced image editing capabilities.

## Models

* **gpt-image-1.5** - Text-to-image and image-to-image generation
* **gpt-image-1.5-edit** - Advanced image editing with mask support

Generation with `gpt-image-1.5` uses `n` to select and bill the requested image count. Editing with `gpt-image-1.5-edit` produces and bills one image per request; `n` does not increase editing outputs.

## Workflow IDs

Existing IDs remain available. New integrations can select a dedicated workflow:

* [openai/gpt-image-1.5/text-to-image](https://docs.vidgo.ai/api-manual/image-series/openai-gpt-image-1-5-text-to-image.md)
* [openai/gpt-image-1.5/edit](https://docs.vidgo.ai/api-manual/image-series/openai-gpt-image-1-5-edit.md)


## OpenAPI

````yaml api-manual/image-series/gpt-image-1.5.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - GPT Image 1.5 API
  description: GPT Image 1.5 Generation and Editing
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - GPT Image 1.5
      summary: Submit GPT Image 1.5 Generation Task
      description: Generate or edit images using GPT Image 1.5 models
      operationId: submitGPTImage15Task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              gpt-image-1.5:
                summary: GPT Image 1.5 Generation
                value:
                  model: gpt-image-1.5
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: A serene mountain landscape at sunset with vibrant colors
                    size: '1:1'
                    'n': 1
              gpt-image-1.5-edit:
                summary: GPT Image 1.5 Edit
                value:
                  model: gpt-image-1.5-edit
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: Replace the sky with a starry night sky
                    image_urls:
                      - https://cdn.vidgo.ai/temp/original-image.jpg
                    mask_url: https://cdn.vidgo.ai/temp/mask.png
                    size: '1:1'
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 400
                error:
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 401
                error:
                  message: Unauthorized - Invalid API key
                  type: authentication_error
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
      properties:
        model:
          type: string
          example: gpt-image-1.5
        callback_url:
          type: string
          format: uri
          description: Webhook callback URL for result notifications
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
          description: Input parameters for generation
          properties:
            prompt:
              type: string
              description: Generation prompt describing the desired output
              maxLength: 1000
              example: A beautiful sunset over the ocean
            image_urls:
              type: array
              items:
                type: string
                format: uri
              description: Reference image URLs (for image editing)
              example: []
            size:
              type: string
              description: Image size ratio
              enum:
                - '1:1'
                - '2:3'
                - '3:2'
              example: '1:1'
            'n':
              type: integer
              description: >-
                Number of images to generate. With gpt-image-1.5-edit, each
                request produces one image and is billed for one image; n does
                not increase editing outputs.
              enum:
                - 1
                - 2
                - 3
                - 4
              example: 1
            mask_url:
              type: string
              format: uri
              description: Mask image URL for editing
              example: https://cdn.vidgo.ai/temp/mask.png
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          description: HTTP status code
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-unified-1757165031-uyujaw3d
              description: Unique task identifier for status tracking
            status:
              type: string
              enum:
                - not_started
              example: not_started
              description: Initial task status
            created_time:
              type: string
              format: date-time
              example: '2025-11-12T10:30:00'
              description: ISO 8601 timestamp when the task was created
    ErrorResponse:
      type: object
      required:
        - code
        - error
      properties:
        code:
          type: integer
          example: 400
          description: HTTP status code
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
              example: Invalid request parameters
              description: Error message describing what went wrong
            type:
              type: string
              example: invalid_request_error
              description: Error type identifier
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        All API endpoints require Bearer Token authentication


        Get your API Key:


        Visit the [API Key Management
        Page](https://vidgo.ai/apis/dashboard/api-key) to get your API Key


        Add it to the request header:


        ```

        Authorization: Bearer VIDGO_API_KEY

        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.