AI Photo Studio Discovery API

Unauthenticated read endpoints for capability, theme, and product discovery.

GitHub OpenAPI

Operations 3

GET /api/agent/capabilities List every operation, parameter, and credit cost #
GET /api/agent/themes List available photo theme categories #
GET /api/commerce/products List buyable credit packages with live prices #

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/photoaistudio-com:photoaistudio-com-discovery-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

photoaistudio-com-discovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Photo AI Studio Agent Discovery API
  version: 1.0.0
  summary: Generate professional AI photos, edit images, and create video from a selfie — programmatically.
  description: 'Machine-readable API surface for AI agents. Public discovery endpoints (capabilities, themes, products) require no authentication; generation and account endpoints use a Bearer token plus an X-Buyer-Email header identifying the end user. Also reachable over the Model Context Protocol at /api/mcp (manifest at /.well-known/mcp) and, for interactive checkout, the agentic-commerce endpoints under /api/commerce. Credits are the unit of spend (100 credits = 1 photo); prices and packages are in the product feed and at /pricing.


    Versioning: this is v1. Send an optional `API-Version` request header (date- or number-based, e.g. `2026-08-25` or `1`) to pin behavior; without it, the current stable version is used. Breaking changes ship under a new version value and, where structural, a new `/vN/` path.


    Deprecation & sunset policy: a version is supported for at least 6 months after its successor ships. When an endpoint or version is deprecated it returns a `Deprecation: true` header and a `Sunset: ` header (RFC 8594) giving the earliest removal date, plus a `Link` header with `rel="deprecation"` pointing to migration docs. Removal never happens before the advertised Sunset date.'
  x-sunset-policy:
    minSupportWindowMonths: 6
    deprecationHeader: Deprecation
    sunsetHeader: Sunset
    docs: https://www.photoaistudio.com/for-developers
  contact:
    name: Photo AI Studio Support
    email: contact@photoaistudio.com
    url: https://www.photoaistudio.com/contact
  termsOfService: https://www.photoaistudio.com/terms-conditions
  license:
    name: Proprietary
    url: https://www.photoaistudio.com/terms-conditions
servers:
- url: https://www.photoaistudio.com
  description: Production (v1)
security:
- bearerAuth: []
  buyerEmail: []
tags:
- name: Discovery
  description: Unauthenticated read endpoints for capability, theme, and product discovery.
paths:
  /api/agent/capabilities:
    get:
      tags:
      - Discovery
      operationId: getCapabilities
      summary: List every operation, parameter, and credit cost
      description: Unauthenticated. Returns the full machine-readable capability descriptor for the agent API.
      security: []
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '200':
          description: Capability descriptor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Capabilities'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          $ref: '#/components/responses/Error'
  /api/agent/themes:
    get:
      tags:
      - Discovery
      operationId: listThemes
      summary: List available photo theme categories
      description: Unauthenticated. Returns the live theme catalog.
      security: []
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - name: gender
        in: query
        required: false
        schema:
          type: string
          enum:
          - male
          - female
          - unisex
      - name: tag
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Theme catalog
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThemeList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          $ref: '#/components/responses/Error'
  /api/commerce/products:
    get:
      tags:
      - Discovery
      operationId: listProducts
      summary: List buyable credit packages with live prices
      description: Unauthenticated. Product feed for agentic commerce (ACP / UCP).
      security: []
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '200':
          description: Product feed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductFeed'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    ThemeList:
      type: object
      properties:
        themes:
          type: array
          items:
            $ref: '#/components/schemas/Theme'
    Error:
      type: object
      description: Structured JSON error. Agents should branch on `type` and surface `message`; `resolution` hints how to recover.
      required:
      - type
      - message
      properties:
        type:
          type: string
          description: Stable machine-readable error code (e.g. invalid_request, unauthorized, insufficient_credits, not_found).
        message:
          type: string
          description: Human-readable explanation.
        resolution:
          type: string
          description: How to fix or recover from the error.
        status:
          type: integer
          description: HTTP status code.
    Product:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        unit_amount:
          type: integer
          description: Price in the smallest currency unit.
        currency:
          type: string
        credits:
          type: integer
        photos_equivalent:
          type: integer
        availability_status:
          type: string
    Theme:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        url:
          type: string
          format: uri
    Capabilities:
      type: object
      properties:
        version:
          type: string
        service:
          type: string
        auth:
          type: object
          additionalProperties: true
        operations:
          type: object
          additionalProperties: true
    ProductFeed:
      type: object
      properties:
        merchant:
          type: object
          additionalProperties: true
        products:
          type: array
          items:
            $ref: '#/components/schemas/Product'
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error:
      description: Unexpected error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: 'Rate limit exceeded. Paid operations (generate, edit, video) are never rate limited — credits are the only cap on how fast you can spend. Limits apply to work that costs you nothing: reads, uploads, public endpoints, requests that fail authentication, and generation requests that consume no credits. The body names the bucket in `scope` and gives `limit`, `window_seconds` and `retry_after`; the RateLimit-* / X-RateLimit-* headers carry the live policy, and a 429 also sends Retry-After.'
      headers:
        RateLimit-Limit:
          schema:
            type: integer
          description: Requests allowed in the current window.
        RateLimit-Remaining:
          schema:
            type: integer
          description: Requests remaining in the current window.
        RateLimit-Reset:
          schema:
            type: integer
          description: Seconds until the window resets.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    ApiVersion:
      name: API-Version
      in: header
      required: false
      description: Optional API version to pin (date-based e.g. 2026-08-25, or number e.g. 1). Omit to use the current stable version.
      schema:
        type: string
        default: '1'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer credential. Use a per-user API key (pa_sk_) created at https://www.photoaistudio.com/api-keys, an OAuth 2.1 access token (pa_at_) from /api/oauth/token, or a shared partner token together with X-Buyer-Email. Send as: Authorization: Bearer <token>.'
    buyerEmail:
      type: apiKey
      in: header
      name: X-Buyer-Email
      description: Email of the end user the agent is acting for. Users are auto-created.
    oauth2:
      type: oauth2
      description: OAuth 2.1 authorization code flow with PKCE. Used by remote MCP clients. Discover the endpoints at /.well-known/oauth-authorization-server and the protected resource at /.well-known/oauth-protected-resource.
      flows:
        authorizationCode:
          authorizationUrl: https://www.photoaistudio.com/api/oauth/authorize
          tokenUrl: https://www.photoaistudio.com/api/oauth/token
          refreshUrl: https://www.photoaistudio.com/api/oauth/token
          scopes:
            photos:read: Read the account, credit balance, themes, and past generations.
            photos:write: Upload images and spend credits on photos, edits, and videos.
externalDocs:
  description: Developer guide, llms.txt, and MCP server
  url: https://www.photoaistudio.com/for-developers