Quickstart

Base URL https://arteza.ai/api/v1

OpenAPI 3.1 specification, for SDK generators and agents: /api/v1/openapi.json

Official SDKs for TypeScript and Python, a command line and agent skills: SDKs and CLI

  1. Create an API key in the console. Open the console
  2. Choose how the key pays: your plan credits, or a pay-as-you-go USD balance.
  3. Send your first request.
curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "input": { "prompt": "A red fox in fresh snow, golden hour" }
  }'

The response is a generation. Images often finish within the request; video returns while still running, so poll it or use a webhook.

{
  "id": "4f1c2b9e-8d6a-4c51-9a63-0f2b7d1e5a90",
  "object": "generation",
  "model": "nano-banana-2",
  "status": "completed",
  "created_at": "2026-11-28T10:00:00.000Z",
  "completed_at": "2026-11-28T10:00:07.412Z",
  "input": {
    "prompt": "A red fox in fresh snow, golden hour",
    "aspect_ratio": "1:1",
    "num_images": 1
  },
  "output": {
    "files": [
      {
        "url": "https://assets.arteza.ai/generations/4f1c2b9e.png",
        "type": "image"
      }
    ],
    "thumbnail_url": null
  },
  "error": null,
  "billing": {
    "funding": "usd",
    "usd": 0.08,
    "usd_micros": 80000,
    "refunded": false
  }
}