ImgAPI API

ImgAPI API as documented publicly: 8 operations. Contract generated from the documentation by API Evangelist (2026-10-28); not the provider's own document.

Operations 8

GET /api/imgapi/credits/ledger GET /api/imgapi/credits/ledger #
GET /api/v1/credits batch product image api #
GET /api/v1/images/generations GET /api/v1/images/generations #
POST /api/v1/images/generations POST /api/v1/images/generations #
GET /api/v1/images/tasks/{id} Query the result #
GET /api/v1/images/tasks/{id}/download Download image #
GET /api/v1/models text to image api | ImgAPI #
GET /images/tasks/{id} text to image api | ImgAPI #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/imgapi-ai:imgapi-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

imgapi-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: ImgAPI API
  version: '2026-10-28'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-28: 8 operation(s) read from 12 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; ImgAPI has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 5
    documentation: 3
    pages-with-code: 12
    pages-read: 12
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-28'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://imgapi.ai/gpt-image-2-api
  - https://imgapi.ai/nano-banana-api
  - https://imgapi.ai/gpt-image-2.5-api
  - https://imgapi.ai/text-to-image-api
  - https://imgapi.ai/seedream-5-pro-api
  - https://imgapi.ai/nano-banana-2-1-api
  - https://imgapi.ai/nano-banana-pro-api
  - https://imgapi.ai/batch-product-image-api
  - https://imgapi.ai/amazon-product-image-api
  - https://imgapi.ai/product-image-generation-api
  - https://imgapi.ai/api-docs
  - https://imgapi.ai/zh
paths:
  /api/imgapi/credits/ledger:
    get:
      operationId: get_api_imgapi_credits_ledger
      tags:
      - Api
      summary: GET /api/imgapi/credits/ledger
      x-source: https://imgapi.ai/api-docs
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiImgapiCreditsLedgerResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl --silent --show-error --fail --get ''https://imgapi.ai/api/imgapi/credits/ledger'' -H "Cookie: $IMGAPI_SESSION_COOKIE"
          --data-urlencode ''page=1'' --data-urlencode ''pageSize=10'' Request parameters Parameter Required? Description Cookie Required Website
          session. Sign in to query your account. page Optional Page number, from 1 to 10000; defaults to 1. pageSize Optional Records per page,
          from 1 to 5'
  /api/v1/credits:
    get:
      operationId: get_api_v1_credits
      tags:
      - Api
      summary: batch product image api
      x-source: https://imgapi.ai/batch-product-image-api
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer $IMGAPI_API_KEY
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/images/generations:
    get:
      operationId: get_api_v1_images_generations
      tags:
      - Api
      summary: GET /api/v1/images/generations
      x-source: https://imgapi.ai/api-docs
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ImagesGenerationsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl --silent --show-error --fail \"https://imgapi.ai/api/v1/images/generations\" -H \"Authorization: Bearer $IMGAPI_API_KEY\"\
          \ -H \"Idempotency-Key: $IMGAPI_REQUEST_ID\" -F 'model=gpt-image-2' -F 'prompt=A studio product photo' -F 'resolution=1K' -F 'aspectRatio=1:1'\
          \ -F 'quality=high' -F 'files=@reference.png' \n HTTP 202 means the task was accepted. This sample shows selected response fields only;\
          \ it is"
    post:
      operationId: post_api_v1_images_generations
      tags:
      - Api
      summary: POST /api/v1/images/generations
      x-source: https://imgapi.ai/gpt-image-2-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ImagesGenerationsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl --request POST 'https://imgapi.ai/api/v1/images/generations'  --header \"Authorization: Bearer $IMGAPI_API_KEY\"  --header\
          \ \"Idempotency-Key: $IMGAPI_REQUEST_ID\"  --header 'Content-Type: application/json'  --data-raw '{\n \"model\": \"gpt-image-2\",\n\
          \ \"prompt\": \"A blue ceramic mug in soft natural light\",\n \"aspectRatio\": \"1:1\",\n \"quality\": \"high\",\n \"resolution\": \"\
          2K\",\n \"urls\": []\n}' \n Query a task "
  /api/v1/images/tasks/{id}:
    get:
      operationId: get_api_v1_images_tasks_id
      tags:
      - Api
      summary: Query the result
      x-source: https://imgapi.ai/api-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer YOUR_API_KEY
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ImagesTasksIdResponse'
      x-evidence:
        kind: documentation
  /api/v1/images/tasks/{id}/download:
    get:
      operationId: get_api_v1_images_tasks_id_download
      tags:
      - Api
      summary: Download image
      x-source: https://imgapi.ai/api-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer YOUR_API_KEY
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ImagesTasksIdDownloadResponse'
      x-evidence:
        kind: documentation
  /api/v1/models:
    get:
      operationId: get_api_v1_models
      tags:
      - Api
      summary: text to image api | ImgAPI
      x-source: https://imgapi.ai/text-to-image-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /images/tasks/{id}:
    get:
      operationId: get_images_tasks_id
      tags:
      - Images
      summary: text to image api | ImgAPI
      x-source: https://imgapi.ai/text-to-image-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiImgapiCreditsLedgerResponse:
      type: object
      properties:
        page:
          type: integer
        pageSize:
          type: integer
        total:
          type: integer
        pages:
          type: integer
        available:
          type: integer
        records:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              scene:
                type: string
              amount:
                type: integer
              state:
                type: string
              remaining:
                type: integer
              description:
                type: string
              createdAt:
                type: string
                format: date-time
              expiresAt:
                type:
                - string
                - 'null'
              taskId:
                type:
                - string
                - 'null'
    GetApiV1ImagesGenerationsResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
    PostApiV1ImagesGenerationsRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
        aspectRatio:
          type: string
        quality:
          type: string
        resolution:
          type: string
        urls:
          type: array
          items: {}
    GetApiV1ImagesTasksIdResponse:
      type: object
      properties:
        id:
          type: string
          description: Task ID.
        status:
          type: string
          description: Task status (submitted, processing, succeeded, failed).
        failure_reason:
          type: string
          description: Reason for failure, if status is failed.
    GetApiV1ImagesTasksIdDownloadResponse:
      type: object
      properties:
        image:
          type: string
          description: Generated image file.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Images