Apification AI API

The AI API from Apification, for ai.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /ai/providers Lists configured AI providers and their public generation parameters #
POST /ai/estimates Estimates billing units, credits and projected storage before an AI generation #
GET /ai/text/generations Returns the authenticated account text-generation history #
POST /ai/text/generations Generates text using the same provider, quota and credit rules as the account… #
GET /ai/media/generations Returns generated image, video and audio history #
POST /ai/media/generations Generates image, video or audio and stores the result in Cloud #

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/apification-com:apification-com-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

apification-com-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Laravel AI API
  version: 1.0.0
  description: API v1 for accounts, AI generation, billing, Cloud collaboration, imports, interactive services, partner marketplace, file transformations, webhooks and metrics.
servers:
- url: https://www.apification.com/api/v1
  description: API v1
security:
- ApiKeyBearer: []
tags:
- name: AI
paths:
  /ai/providers:
    get:
      tags:
      - AI
      operationId: api_v1_ai_providers_index
      summary: Lists configured AI providers and their public generation parameters
      parameters:
      - name: modality
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/ResellerSubaccount'
      responses:
        '200':
          description: AI providers
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            Idempotency-Cache:
              $ref: '#/components/headers/IdempotencyCache'
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/GenericObject'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
        '400':
          description: bad_request
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                bad_request:
                  value:
                    error:
                      code: bad_request
                      message: Human readable message.
                      type: invalid_request_error
        '401':
          description: authentication_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                authentication_failed:
                  value:
                    error:
                      code: authentication_failed
                      message: Human readable message.
                      type: authentication_error
        '403':
          description: permission_denied
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                permission_denied:
                  value:
                    error:
                      code: permission_denied
                      message: Human readable message.
                      type: invalid_request_error
        '404':
          description: not_found
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Human readable message.
                      type: invalid_request_error
        '409':
          description: conflict
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                conflict:
                  value:
                    error:
                      code: conflict
                      message: Human readable message.
                      type: invalid_request_error
        '422':
          description: validation_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_failed:
                  value:
                    error:
                      code: validation_failed
                      message: Human readable message.
                      type: authentication_error
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Human readable message.
                      type: invalid_request_error
        '500':
          description: server_error
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Human readable message.
                      type: invalid_request_error
      x-required-scope: ai:read
  /ai/estimates:
    post:
      tags:
      - AI
      operationId: api_v1_ai_estimates_store
      summary: Estimates billing units, credits and projected storage before an AI generation
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      - $ref: '#/components/parameters/ResellerSubaccount'
      responses:
        '200':
          description: AI estimate
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            Idempotency-Cache:
              $ref: '#/components/headers/IdempotencyCache'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericObject'
        '400':
          description: bad_request
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                bad_request:
                  value:
                    error:
                      code: bad_request
                      message: Human readable message.
                      type: invalid_request_error
        '401':
          description: authentication_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                authentication_failed:
                  value:
                    error:
                      code: authentication_failed
                      message: Human readable message.
                      type: authentication_error
        '403':
          description: permission_denied
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                permission_denied:
                  value:
                    error:
                      code: permission_denied
                      message: Human readable message.
                      type: invalid_request_error
        '404':
          description: not_found
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Human readable message.
                      type: invalid_request_error
        '409':
          description: conflict
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                conflict:
                  value:
                    error:
                      code: conflict
                      message: Human readable message.
                      type: invalid_request_error
        '422':
          description: validation_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_failed:
                  value:
                    error:
                      code: validation_failed
                      message: Human readable message.
                      type: authentication_error
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Human readable message.
                      type: invalid_request_error
        '500':
          description: server_error
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Human readable message.
                      type: invalid_request_error
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericObject'
      x-required-scope: ai:read
  /ai/text/generations:
    get:
      tags:
      - AI
      operationId: api_v1_ai_text_generations_index
      summary: Returns the authenticated account text-generation history
      parameters:
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/PerPage'
      - $ref: '#/components/parameters/ResellerSubaccount'
      responses:
        '200':
          description: Text generations
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            Idempotency-Cache:
              $ref: '#/components/headers/IdempotencyCache'
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/GenericObject'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
        '400':
          description: bad_request
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                bad_request:
                  value:
                    error:
                      code: bad_request
                      message: Human readable message.
                      type: invalid_request_error
        '401':
          description: authentication_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                authentication_failed:
                  value:
                    error:
                      code: authentication_failed
                      message: Human readable message.
                      type: authentication_error
        '403':
          description: permission_denied
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                permission_denied:
                  value:
                    error:
                      code: permission_denied
                      message: Human readable message.
                      type: invalid_request_error
        '404':
          description: not_found
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Human readable message.
                      type: invalid_request_error
        '409':
          description: conflict
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                conflict:
                  value:
                    error:
                      code: conflict
                      message: Human readable message.
                      type: invalid_request_error
        '422':
          description: validation_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_failed:
                  value:
                    error:
                      code: validation_failed
                      message: Human readable message.
                      type: authentication_error
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Human readable message.
                      type: invalid_request_error
        '500':
          description: server_error
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Human readable message.
                      type: invalid_request_error
      x-required-scope: ai:read
    post:
      tags:
      - AI
      operationId: api_v1_ai_text_generations_store
      summary: Generates text using the same provider, quota and credit rules as the account…
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      - $ref: '#/components/parameters/ResellerSubaccount'
      responses:
        '200':
          description: Generated text
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            Idempotency-Cache:
              $ref: '#/components/headers/IdempotencyCache'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericObject'
        '400':
          description: bad_request
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                bad_request:
                  value:
                    error:
                      code: bad_request
                      message: Human readable message.
                      type: invalid_request_error
        '401':
          description: authentication_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                authentication_failed:
                  value:
                    error:
                      code: authentication_failed
                      message: Human readable message.
                      type: authentication_error
        '403':
          description: permission_denied
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                permission_denied:
                  value:
                    error:
                      code: permission_denied
                      message: Human readable message.
                      type: invalid_request_error
        '404':
          description: not_found
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Human readable message.
                      type: invalid_request_error
        '409':
          description: conflict
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                conflict:
                  value:
                    error:
                      code: conflict
                      message: Human readable message.
                      type: invalid_request_error
        '422':
          description: validation_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_failed:
                  value:
                    error:
                      code: validation_failed
                      message: Human readable message.
                      type: authentication_error
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Human readable message.
                      type: invalid_request_error
        '500':
          description: server_error
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Human readable message.
                      type: invalid_request_error
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericObject'
      x-required-scope: ai:write
  /ai/media/generations:
    get:
      tags:
      - AI
      operationId: api_v1_ai_media_generations_index
      summary: Returns generated image, video and audio history
      parameters:
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/PerPage'
      - $ref: '#/components/parameters/ResellerSubaccount'
      responses:
        '200':
          description: Media generations
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            Idempotency-Cache:
              $ref: '#/components/headers/IdempotencyCache'
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/GenericObject'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
        '400':
          description: bad_request
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                bad_request:
                  value:
                    error:
                      code: bad_request
                      message: Human readable message.
                      type: invalid_request_error
        '401':
          description: authentication_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                authentication_failed:
                  value:
                    error:
                      code: authentication_failed
                      message: Human readable message.
                      type: authentication_error
        '403':
          description: permission_denied
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                permission_denied:
                  value:
                    error:
                      code: permission_denied
                      message: Human readable message.
                      type: invalid_request_error
        '404':
          description: not_found
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Human readable message.
                      type: invalid_request_error
        '409':
          description: conflict
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                conflict:
                  value:
                    error:
                      code: conflict
                      message: Human readable message.
                      type: invalid_request_error
        '422':
          description: validation_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_failed:
                  value:
                    error:
                      code: validation_failed
                      message: Human readable message.
                      type: authentication_error
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Human readable message.
                      type: invalid_request_error
        '500':
          description: server_error
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Human readable message.
                      type: invalid_request_error
      x-required-scope: ai:read
    post:
      tags:
      - AI
      operationId: api_v1_ai_media_generations_store
      summary: Generates image, video or audio and stores the result in Cloud
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      - $ref: '#/components/parameters/ResellerSubaccount'
      responses:
        '200':
          description: Generated media
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            Idempotency-Cache:
              $ref: '#/components/headers/IdempotencyCache'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericObject'
        '400':
          description: bad_request
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                bad_request:
                  value:
                    error:
                      code: bad_request
                      message: Human readable message.
                      type: invalid_request_error
        '401':
          description: authentication_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                authentication_failed:
                  value:
                    error:
                      code: authentication_failed
                      message: Human readable message.
                      type: authentication_error
        '403':
          description: permission_denied
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                permission_denied:
                  value:
                    error:
                      code: permission_denied
                      message: Human readable message.
                      type: invalid_request_error
        '404':
          description: not_found
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Human readable message.
                      type: invalid_request_error
        '409':
          description: conflict
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                conflict:
                  value:
                    error:
                      code: conflict
                      message: Human readable message.
                      type: invalid_request_error
        '422':
          description: validation_failed
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_failed:
                  value:
                    error:
                      code: validation_failed
                      message: Human readable message.
                      type: authentication_error
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Human readable message.
                      type: invalid_request_error
        '500':
          description: server_error
          headers: []
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Human readable message.
                      type: invalid_request_error
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericObject'
      x-required-scope: ai:write
components:
  schemas:
    GenericObject:
      type: object
      additionalProperties: true
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - type
          properties:
            code:
              type: string
              enum:
              - missing_api_key
              - invalid_api_key
              - ip_not_allowed
              - authentication_failed
              - permission_denied
              - insufficient_scope
              - not_found
              - validation_failed
              - storage_limit_exceeded
              - credits_exhausted
              - subaccount_storage_limit_exceeded
              - reseller_storage_limit_exceeded
              - subaccount_credit_limit_exceeded
              - reseller_credits_exhausted
              - rate_limited
              - idempotency_key_invalid
              - idempotency_key_reuse
              - conflict
              - server_error
            message:
              type: string
            type:
              type: string
            details:
              type: object
    PaginationMeta:
      type: object
      properties:
        current_page:
          type: integer
        per_page:
          type: integer
        total:
          type: integer
        last_page:
          type: integer
  headers:
    RateLimitLimit:
      schema:
        type: integer
      description: Request limit for the current window.
    RateLimitRemaining:
      schema:
        type: integer
      description: Requests remaining in the current window.
    IdempotencyCache:
      schema:
        type: string
        enum:
        - HIT
        - MISS
      description: Indicates whether the response came from the idempotency cache.
    RetryAfter:
      schema:
        type: integer
      description: Seconds before retrying after a 429 response.
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      schema:
        type: string
        minLength: 8
        maxLength: 120
      description: Recommended key for POST, PATCH and DELETE. Retries with the same key and payload return the original response for 24 hours.
    Page:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
        default: 1
      description: Page number for paginated lists.
    ResellerSubaccount:
      name: X-Apification-Subaccount-ID
      in: header
      required: false
      schema:
        type: integer
        minimum: 1
      description: For managed reseller API keys, executes the existing endpoint in the selected direct subaccount context. Storage and credits are checked against both the subaccount allowance and the reseller pool.
    PerPage:
      name: per_page
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
      description: Items per page.
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Use a key created in Settings > API: Authorization: Bearer sk-apification-...'