PopNow AI Models API

The Models API from PopNow AI — 2 operation(s) for models.

GitHub OpenAPI

Operations 2

GET /api/v1/models List callable models and their credit prices #
GET /api/v1/models/{model} Get one model, including its input JSON Schema #

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/popnow-ai:popnow-ai-models-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

popnow-ai-models-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Popnow Ai Models API
  version: 1.0.0
  description: 'Operations tagged Models across 2 of this provider''s published API definitions: openapi.yaml, popnow-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.popnow.ai
  description: Production
security:
- bearerAuth: []
tags:
- name: Models
paths:
  /api/v1/models:
    get:
      tags:
      - Models
      operationId: listModels
      summary: List callable models and their credit prices
      description: 'Returns every chat, image, video and audio model your key can call, without pagination, with

        its exact USD rates (`usd`); `credits` is a deprecated display projection. Chat models

        (`modality: text`, called through the chat operations) carry input and output prices per 1M tokens.

        Pass `modality=text` to list only chat models. The server sends `Cache-Control: private, max-age=60`.'
      parameters:
      - name: modality
        in: query
        schema:
          type: string
          enum:
          - image
          - video
          - audio
          - text
      - name: provider
        in: query
        schema:
          type: string
        description: Exact model creator/author identifier, such as the research lab that built the model.
      - name: task
        in: query
        schema:
          type: string
        description: 'Exact supported task, for example `text-to-image`. Image editing accepts either spelling: `edit` (the published call suffix) and `image-to-image` (the value returned in `tasks`) select the same endpoints.'
      - name: search
        in: query
        schema:
          type: string
          maxLength: 128
      - name: includeSchema
        in: query
        schema:
          oneOf:
          - type: boolean
          - type: integer
            enum:
            - 0
            - 1
        description: Include each model's input JSON Schema when `true` or `1`.
      - name: includeExamples
        in: query
        schema:
          oneOf:
          - type: boolean
          - type: integer
            enum:
            - 0
            - 1
        description: Include validated example inputs when `true` or `1`.
      responses:
        '200':
          description: Model list.
          headers:
            Cache-Control:
              schema:
                type: string
                const: private, max-age=60
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelListEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.popnow.ai
      description: Production
  /api/v1/models/{model}:
    get:
      tags:
      - Models
      operationId: getModel
      summary: Get one model, including its input JSON Schema
      description: '`model` is the exact value used by `createTask.model` and may contain

        slashes. URL-encode embedded slashes when using clients that treat path

        parameters as one segment (for example `family%2Fversion%2Ftask`).'
      parameters:
      - name: model
        in: path
        required: true
        allowReserved: true
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Complete model record.
          headers:
            Cache-Control:
              schema:
                type: string
                const: private, max-age=60
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.popnow.ai
      description: Production
components:
  responses:
    RateLimited:
      description: Account-level request limit exceeded.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Account, model, API-key, IP, or region authorization failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Missing, malformed, expired, revoked, or otherwise invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    BadRequest:
      description: Invalid JSON, query, callback URL, model input, or media declaration. Invalid callBackUrl values return code 400 and msg "Invalid callback URL" with request_id. Submitted hosts, IP addresses, and DNS diagnostics are not echoed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Resource does not exist or is not visible to this account and API key. These cases are intentionally indistinguishable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ServerError:
      description: Internal failure. Details are not exposed; report `request_id` to support.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
    RateLimitRemaining:
      description: Remaining requests in the active window.
      schema:
        type: integer
    RateLimitLimit:
      description: Capacity of the active account-level rate-limit window.
      schema:
        type: integer
  schemas:
    ModelListEnvelope:
      allOf:
      - $ref: '#/components/schemas/EnvelopeBase'
      - type: object
        required:
        - data
        properties:
          code:
            type: integer
            const: 200
          msg:
            type: string
            const: success
          data:
            $ref: '#/components/schemas/APIModelList'
    APIModelExample:
      type: object
      required:
      - id
      - input
      - sortWeight
      properties:
        id:
          type: string
        input:
          type: object
          additionalProperties: true
        sortWeight:
          type: integer
    APIModelList:
      type: object
      required:
      - total
      - items
      properties:
        total:
          type: integer
          minimum: 0
        items:
          type: array
          items:
            $ref: '#/components/schemas/APIModel'
    ModelEnvelope:
      allOf:
      - $ref: '#/components/schemas/EnvelopeBase'
      - type: object
        required:
        - data
        properties:
          code:
            type: integer
            const: 200
          msg:
            type: string
            const: success
          data:
            $ref: '#/components/schemas/APIModel'
    APIModel:
      type: object
      required:
      - model
      - family
      - displayName
      - provider
      - modality
      - tasks
      - async
      - taskTimeoutSeconds
      - enabled
      - available
      - quantityField
      - version
      - availability
      - badges
      - relatedModels
      - updatedAt
      - credits
      - usd
      properties:
        model:
          type: string
          description: Model call name in `<publisher>/<model>/<task>` form; the value `createTask.model` takes. Image editing uses the `edit` suffix.
          example: alibaba/wan-3.0/image-to-video
        family:
          type: string
          description: Stable product-family identifier; endpoint variants are listed in `tasks` and expressed by `inputSchema`.
        displayName:
          type: string
        provider:
          type: string
          description: Model creator/author identifier, such as the research lab that built the model.
        modality:
          type: string
          enum:
          - text
          - image
          - video
          - audio
        tasks:
          type: array
          items:
            type: string
          description: 'The internal task classification of this one endpoint. Always exactly one element, and it is not always the suffix of `model`: image editing endpoints are published as `.../edit` but classified as `image-to-image` (or `image-edit` for single-purpose tools). Use `model` to call, and `tasks[0]` only to group or filter. New values appear as models are added, so treat the set as open.'
        async:
          type: boolean
        toolkit:
          type: string
          enum:
          - subject-swap
          - studio-tools
          description: Which toolkit family this model belongs to (subject-swap for identity swaps; studio-tools for single-purpose image and video tools such as background removal or upscaling). Informational classification for catalogue grouping only; it does not participate in routing, pricing or authorization. Absent when the model is not part of a toolkit.
        taskTimeoutSeconds:
          type: integer
          minimum: 1
          description: Absolute platform execution deadline before timeout/refund; not media output duration.
        maxOutputDurationSeconds:
          type: integer
          minimum: 1
          description: Maximum output duration the model schema allows, taken from the `maximum` of its `duration_seconds` property; omitted when that property is absent or has no declared maximum. Distinct from `taskTimeoutSeconds`, which is the platform execution deadline.
        enabled:
          type: boolean
        available:
          type: boolean
          description: Whether the model can be called right now.
        quantityField:
          type: string
        credits:
          type: object
          description: Deprecated credit-scale rate snapshot retained for compatibility. It may lose precision; use usd and jobs/quote for API prices.
          required:
          - unit
          properties:
            unit:
              type: string
            perUnit:
              type: number
              minimum: 0
            blocks:
              type: object
              description: Duration is rounded up to whole billing blocks, subject to the stated minimum and cap. Refer to the model for whether duration means input or output.
              required:
              - seconds
              properties:
                seconds:
                  type: integer
                  minimum: 1
                min:
                  type: integer
                  minimum: 1
                cap:
                  type: integer
                  minimum: 1
            input:
              type: number
              minimum: 0
              description: Chat models only. Credits per 1M input tokens.
            output:
              type: number
              minimum: 0
              description: Chat models only. Credits per 1M output tokens (reasoning tokens count as output).
            cachedInput:
              type: number
              minimum: 0
              description: Chat models only. Credits per 1M cached input tokens.
            cacheWrite:
              type: number
              minimum: 0
              description: Chat models only. Credits per 1M tokens written to the prompt cache.
            longContext:
              type: object
              description: Chat models only. Prices for requests whose input exceeds thresholdTokens (reaches it when inclusive is true).
              properties:
                thresholdTokens:
                  type: integer
                inclusive:
                  type: boolean
                input:
                  type: number
                  minimum: 0
                cachedInput:
                  type: number
                  minimum: 0
                cacheWrite:
                  type: number
                  minimum: 0
                output:
                  type: number
                  minimum: 0
            rules:
              type: array
              items:
                type: object
                required:
                - when
                - perUnit
                properties:
                  when:
                    type: object
                    additionalProperties: true
                  perUnit:
                    type: number
                    minimum: 0
                  unit:
                    type: string
          additionalProperties: true
          deprecated: true
        inputSchema:
          type: object
          description: 'JSON Schema draft 2020-12 used by `createTask.input` validation and Playground rendering. Standard JSON Schema keywords validate. Presentation hints live only in a per-property `x-ui` object whose keys are snake_case and drawn from a closed set: `widget`, `order`, `label`, `placeholder`, `rows`, `step`, `unit`, `accept`, `max_size_mb`, `max_duration_seconds`, `max_total_duration_seconds`, `advanced`, `primary`, `affects_price`, `visible_when`, `enum_labels`, `reference_tokens`, `reference_sequence`, `reference_regions`, `mask`. `x-ui.order` is the only source of field order (descending first). `x-ui.widget` is one of `textarea`, `text`, `upload`, `multi-upload`, `select`, `radio`, `slider`, `number`, `switch`, `json`, `object-list`, `chat-messages`, `hidden`. Root-level composition is limited to `anyOf`, where every branch contains only `required`, and `allOf`, where each branch is `if` (`required` or `properties.*.const`) plus `then` (`required`); `oneOf`, `not` and `dependentSchemas` never appear. Unknown hints must be ignored.'
          additionalProperties: true
        version:
          type: string
          description: Public model-catalog version label used to detect schema or metadata changes.
        availability:
          type: string
          enum:
          - planned
          - available
          - preview
          - maintenance
        badges:
          type: array
          description: Closed capability and licensing vocabulary; clients should ignore unknown future IDs.
          items:
            type: string
            enum:
            - commercial_use
            - no_watermark
            - commercial_restricted
            - reference_input
            - audio_output
            - streaming
            - fast_tier
            - high_resolution
            - long_context
        relatedModels:
          type: array
          description: Curated model identifiers suitable for alternatives or workflow steps.
          items:
            type: string
        examples:
          type: array
          description: A ready-to-run example input, the same one the API reference shows. Validated against this model's current input schema.
          items:
            $ref: '#/components/schemas/APIModelExample'
        updatedAt:
          type: string
          format: date-time
        usd:
          type: object
          description: USD rate snapshot. Monetary values are exact decimal strings; units, tier conditions and token thresholds retain their original meaning. Use jobs/quote for the authoritative current hold. No website-credit rounding applies.
          required:
          - unit
          - currency
          properties:
            unit:
              type: string
            perUnit:
              type: string
            blocks:
              type: object
              description: Duration is rounded up to whole billing blocks, subject to the stated minimum and cap. Refer to the model for whether duration means input or output.
              required:
              - seconds
              properties:
                seconds:
                  type: integer
                  minimum: 1
                min:
                  type: integer
                  minimum: 1
                cap:
                  type: integer
                  minimum: 1
            input:
              type: string
              description: Chat models only. USD per 1M input tokens.
            output:
              type: string
              description: Chat models only. USD per 1M output tokens (reasoning tokens count as output).
            cachedInput:
              type: string
              description: Chat models only. USD per 1M cached input tokens.
            cacheWrite:
              type: string
              description: Chat models only. USD per 1M tokens written to the prompt cache.
            longContext:
              type: object
              description: Chat models only. Prices for requests whose input exceeds thresholdTokens (reaches it when inclusive is true).
              properties:
                thresholdTokens:
                  type: integer
                inclusive:
                  type: boolean
                input:
                  type: string
                cachedInput:
                  type: string
                cacheWrite:
                  type: string
                output:
                  type: string
            rules:
              type: array
              items:
                type: object
                required:
                - when
                - perUnit
                properties:
                  when:
                    type: object
                    additionalProperties: true
                  perUnit:
                    type: string
                  unit:
                    type: string
            perMillionTokens:
              type: object
              additionalProperties: true
              description: Exact decimal USD rates per million tokens, including text, audio and image components when available.
            currency:
              type: string
              enum:
              - USD
          additionalProperties: true
    ErrorEnvelope:
      allOf:
      - $ref: '#/components/schemas/EnvelopeBase'
      - type: object
        properties:
          code:
            type: integer
            enum:
            - 400
            - 40003
            - 40004
            - 401
            - 40201
            - 40202
            - 403
            - 40301
            - 40302
            - 40303
            - 40310
            - 404
            - 409
            - 40901
            - 413
            - 429
            - 500
            - 503
            - 50301
            - 50302
            description: 'Business code. `40003`: an uploaded file''s actual size, media type or signature does not match its upload ticket (file commit). `40004`: the request is valid but no deployment can serve this exact parameter combination; change the named parameter and retry. `503`: a dependency is temporarily unavailable (for example a list or usage query timed out, or inline image storage failed); honour `Retry-After` when present. `50301`: the model has no usable deployment or effective price right now. `50302`: a synchronous generation (streaming) failed upstream and the charge was refunded. Retry with a **new** `Idempotency-Key` — the original key replays the same failure, so a transport-level retry that keeps the key can never succeed. `40301`: this key is not allowed to call this model — check the key''s model restrictions in the Console. `40302`: the caller''s address is not in this key''s IP allow-list. `40303`: the request comes from a region this service is not offered in; the message deliberately does not state how that is determined, and neither does this description. `40310`: the account has not verified its email address yet, so it cannot run models. Open the verification link that was emailed at sign-up, or send a new one from the Console; the key starts working as soon as the address is verified, with no change on your side.'
          msg:
            type: string
            description: Human-readable explanation, English unless `Accept-Language` or the account's API error language selects another supported language. Never parse it; branch on `code`.
          data:
            type: object
            description: 'Present only when the failure carries a machine-readable reason; otherwise absent. `code`, the HTTP status and `msg` are the same with or without it. `asset_library_locked` (400): the asset library opens after the first top-up. `asset_library_full` (400): the allowance is full. `asset_file_too_large` (400): the file is above the plan''s per-file limit. `asset_daily_limit` (429): the daily number of new assets is reached; honour `Retry-After`. `asset_storage_full` (503): storage is full across the platform. `asset_permission_denied` (403): the caller''s team role does not allow this change. `asset_workspace_forbidden` (403): this key or workspace cannot reach that library. `adult_content`, `minor_safety` and `image_rejected` (400): the content safety gate declined the prompt or an input image before anything was charged. New values may be added; treat unknown values like an absent reason.'
            required:
            - reason
            properties:
              reason:
                type: string
                enum:
                - asset_library_locked
                - asset_library_full
                - asset_file_too_large
                - asset_daily_limit
                - asset_storage_full
                - asset_permission_denied
                - asset_workspace_forbidden
                - asset_entity_name_taken
                - unknown_model
                - unknown_task
                - insufficient_credits
                - adult_content
                - minor_safety
                - image_rejected
                - signup_paused
                - agent_quota
                - agent_rate
                - agent_turns
                - agent_skill_invalid
                - agent_skill_turns
                - price_changed
                - agent_project_budget
                - web_fetch
                - team_role_cannot_spend
                - team_allowance_reached
                - team_wallet_empty
                - team_limit_reached
                - skill_quota
                - skill_rate_needs_install
                - handoff_invalid
                - age_restricted
                - apple_reauth_required
                - pending
                - other_account
                - revoked
                - invalid
                - budget_exceeded
                - mfa_required
                - model_unavailable
                - model_retired
    EnvelopeBase:
      type: object
      required:
      - code
      - msg
      - request_id
      properties:
        code:
          type: integer
        msg:
          type: string
        request_id:
          type: string
          description: Correlation identifier. Include it in support requests.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk-popnow-<48 lowercase hex characters>
      description: 'Send `Authorization: Bearer sk-popnow-...`. Create keys in the developer console at https://popnow.ai/api/console and keep them server-side.'
x-refined-from:
- openapi.yaml
- popnow-ai-openapi.yml