{
  "openapi": "3.1.0",
  "x-zeroclick-navigation": {
    "fullSpec": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json",
    "services": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/services",
    "serviceSpecTemplate": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/services/{slug}/openapi.json",
    "searchTemplate": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json?q={text}",
    "operationTemplate": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json?path={path}&method={method}",
    "firstPage": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json?page=1",
    "instructions": [
      "Use this spec if it contains the operation and details you need. Otherwise, search or open a relevant service spec using the links below.",
      "Find service slugs in x-zeroclick-services or x-payment-info.rates[].service; use them in serviceSpecTemplate, never as request values.",
      "URL-encode template values. Search is ranked; service, path, and method filters are exact. Filters combine.",
      "Pages contain up to 10 operations; follow info.x-next or the Link header if you need more results. Shared operations retain all selector values."
    ]
  },
  "info": {
    "title": "Driftflight",
    "version": "1.0.0",
    "description": "AI image generation with style presets: production-quality text-to-image for campaigns, catalogs, and editorial. Three tiers (sketch, studio, gallery), commercial licence and C2PA credentials on every paid render. This server is a pay-per-use, transparent proxy in front of Driftflight's own API: it handles identity, payment, and proxying. Agents can purchase autonomously or with their human's approval. The complete verified paid surface is listed at /openapi.json, the source of truth for available operations. Each operation here carries its live price in x-payment-info. Use the operations and details here when they meet your needs. Filtered specs contain only matching operations; if you cannot find what you need here, use search or the service catalog. The live catalog at /manifest.json is authoritative for prices and any free included units (prices[].includedUnits) - some meters include free usage per account before any charge, reserved for agents claimed by a human with a verified email.",
    "x-guidance": "Start with the free seller advisor: POST https://agents.driftflight.com/zcj/yc2icdwnsrt4/zeroclick/agent/quote with your goal and known budget or requirements. This operation costs $0 and requires only an x402 or MPP wallet proof; it returns a guide and never executes a purchase. Without a wallet, GET https://agents.driftflight.com/zcj/yc2icdwnsrt4/zeroclick/agent/guide?goal=URL_ENCODED_TASK or POST to that guide. Other operations below are the direct API reference; their own prices and access requirements still apply. Call the operations listed in this document at https://agents.driftflight.com. Each service's full price matrix, plans, and how to buy are at https://agents.driftflight.com/zcj/yc2icdwnsrt4/services/{slug}; each operation's x-payment-info names the service it bills by slug (rates[].service). Slugs identify services in prices and usage reports and are never request values: when one operation serves several services, its request body schema lists the accepted values of the field that selects the service, so send one of those exactly as written. An unpaid call returns 402 Payment Required with a signed challenge; settle it with a supported payment method - x402 (Base USDC) or MPP (Tempo USDC) today - and retry with the proof attached. No upstream API key is needed, and an agent without a payment method can set one up instantly at no cost. Read GET https://agents.driftflight.com/zcj/yc2icdwnsrt4/manifest.json for the live services, meters, plans, prices, and any free included units, and https://agents.driftflight.com/zcj/yc2icdwnsrt4/llms-full.txt for the full agent guide, including how the free allowance works without funding (it requires an agent identity claimed by a human with a verified email). Every call also needs your agent credential: register once (recipe at https://agents.driftflight.com/zcj/yc2icdwnsrt4/auth.md) and send Authorization: Bearer <token>, or ZC-Agent-Authorization: Bearer <token> alongside an MPP Payment credential; a call without it answers 401 bearer_required before any price is quoted."
  },
  "x-service-info": {
    "docs": {
      "homepage": "https://driftflight.com",
      "apiReference": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json",
      "llms": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/llms.txt"
    }
  },
  "externalDocs": {
    "url": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/llms-full.txt",
    "description": "How to authenticate, pay, and call this API; links the upstream API reference."
  },
  "servers": [
    {
      "url": "https://agents.driftflight.com/zcj/yc2icdwnsrt4",
      "description": "Pay-per-use access to Driftflight's API"
    }
  ],
  "security": [
    {
      "payPerUse": [],
      "agentBearer": []
    }
  ],
  "components": {
    "securitySchemes": {
      "payPerUse": {
        "type": "apiKey",
        "in": "header",
        "name": "x-payment",
        "description": "Pay-per-use access. An unpaid call returns 402 Payment Required with a signed challenge; settle it with a supported payment method (x402 or MPP today) and retry with the proof in this header (x402) or as Authorization: Payment (MPP; use ZC-Agent-Authorization for a separate buyer bearer). No upstream API key is needed, and an agent without a payment method can set one up instantly at no cost."
      },
      "agentBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Agent identity credential, required on every call: register once (anonymous registration is one free API call; the recipe is at https://agents.driftflight.com/zcj/yc2icdwnsrt4/auth.md), exchange the assertion for an access token, and send Authorization: Bearer <token> - or ZC-Agent-Authorization: Bearer <token> when Authorization carries an MPP Payment credential. A call without it answers 401 bearer_required before any price is quoted."
      },
      "sellerAgentX402": {
        "type": "apiKey",
        "in": "header",
        "name": "Payment-Signature",
        "description": "Signed $0 x402 proof from the 402 challenge"
      },
      "sellerAgentMpp": {
        "type": "http",
        "scheme": "Payment",
        "description": "Signed $0 MPP proof from the 402 challenge"
      }
    }
  },
  "paths": {
    "/v1/images/generate": {
      "post": {
        "summary": "Generate an image from a text prompt",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "imageUrl",
                    "model",
                    "licence"
                  ],
                  "properties": {
                    "model": {
                      "enum": [
                        "sketch",
                        "studio",
                        "gallery"
                      ],
                      "type": "string"
                    },
                    "preset": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "credits": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "imageUrl": {
                      "type": "string",
                      "format": "uri",
                      "description": "Public URL of the generated image. GET this URL to retrieve the image bytes."
                    }
                  }
                }
              }
            },
            "description": "Image generated. Retrieve imageUrl to obtain the image bytes."
          },
          "401": {
            "description": "Agent identity credential required: register once, then retry with Authorization: Bearer <token>."
          },
          "402": {
            "description": "Payment required"
          },
          "429": {
            "description": "Plan generation allowance exhausted. Applies only to calls authenticated with a df_live_ plan key, when that plan's monthly allowance is used up or the plan is suspended or unpaid; follow the topUp URL in the response body. Per-image purchases through https://agents.driftflight.com/zcj/yc2icdwnsrt4 have no plan allowance."
          }
        },
        "description": "Renders a single image from a prompt.",
        "operationId": "generateImage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "model": {
                    "enum": [
                      "sketch",
                      "studio",
                      "gallery"
                    ],
                    "type": "string",
                    "default": "studio"
                  },
                  "preset": {
                    "enum": [
                      "editorial",
                      "product-studio",
                      "film-noir",
                      "botanical",
                      "watercolor",
                      "isometric"
                    ],
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "required": true
        },
        "x-zeroclick-offers": [
          {
            "terms": {
              "url": "https://driftflight.com/terms",
              "summary": "Paid agent-storefront renders include a perpetual, worldwide commercial licence and C2PA credentials. This applies to paid storefront purchases, not the human Hobby subscription or free trial output."
            },
            "arguments": {
              "body": {
                "model": "sketch"
              }
            },
            "meterSlug": "sketch",
            "description": "sketch: 1408x768. One image per request; visual suitability depends on the prompt and intended use. Rate limit: none per agent; the human plans' concurrency limits do not apply. Typical latency ~2s. Regions: available worldwide, with no regional restrictions.",
            "serviceSlug": "images",
            "unitsPerCall": 1
          },
          {
            "terms": {
              "url": "https://driftflight.com/terms",
              "summary": "Paid agent-storefront renders include a perpetual, worldwide commercial licence and C2PA credentials. This applies to paid storefront purchases, not the human Hobby subscription or free trial output."
            },
            "arguments": {
              "body": {
                "model": "studio"
              }
            },
            "meterSlug": "studio",
            "description": "studio: 1408x768. One image per request; visual suitability depends on the prompt and intended use. Rate limit: none per agent; the human plans' concurrency limits do not apply. Typical latency ~5s. Regions: available worldwide, with no regional restrictions.",
            "serviceSlug": "images",
            "unitsPerCall": 1
          },
          {
            "terms": {
              "url": "https://driftflight.com/terms",
              "summary": "Paid agent-storefront renders include a perpetual, worldwide commercial licence and C2PA credentials. This applies to paid storefront purchases, not the human Hobby subscription or free trial output."
            },
            "arguments": {
              "body": {
                "model": "gallery"
              }
            },
            "meterSlug": "gallery",
            "description": "gallery: 1408x768. One image per request; visual suitability depends on the prompt and intended use. Rate limit: none per agent; the human plans' concurrency limits do not apply. Typical latency ~9s. Regions: available worldwide, with no regional restrictions.",
            "serviceSlug": "images",
            "unitsPerCall": 1
          }
        ],
        "x-zeroclick-document-sources": [
          {
            "gaps": [],
            "pages": [],
            "sourceId": "sds_EwtlwYwL0TI0dgK6zNSXJ",
            "authority": "official",
            "conflicts": [],
            "revisionId": "sdrn_nW--iZffVHRf5kXcPfO1e"
          },
          {
            "gaps": [],
            "pages": [
              1
            ],
            "sourceId": "sds_hRh3K2peDbW2CjhHX-40e",
            "authority": "supplemental",
            "conflicts": [
              "/summary",
              "/responses/200/content/application/json/schema/properties/preset/type",
              "/responses/200/description"
            ],
            "revisionId": "sdrn_ibWeQnWN9UskCdSLToMxY"
          },
          {
            "gaps": [],
            "pages": [
              1
            ],
            "sourceId": "sds_w7qHK32BvsrMqhOwDJiu4",
            "authority": "supplemental",
            "conflicts": [
              "/summary",
              "/responses/200/description",
              "/description",
              "/requestBody/content/application/json/schema/required"
            ],
            "revisionId": "sdrn_xtHME77nii_OiyH3dA9gX"
          }
        ],
        "x-zeroclick-services": [
          "images"
        ],
        "x-payment-info": {
          "access": "payg",
          "protocols": [
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "USD"
              }
            },
            {
              "x402": {
                "network": "eip155:8453",
                "scheme": "exact",
                "currency": "USDC"
              }
            }
          ],
          "offers": [
            {
              "amount": "60000",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "description": "$0.060000 per image (studio, service images)",
              "intent": "charge",
              "method": "tempo"
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.060000"
          },
          "rates": [
            {
              "service": "images",
              "meter": "studio",
              "unit": "image",
              "unitSize": 1,
              "priceUsd": "0.060000",
              "includedUnits": 0
            }
          ]
        }
      }
    },
    "/zeroclick/agent/quote": {
      "post": {
        "operationId": "sellerAgentQuote",
        "summary": "Get a free seller API quote and purchase guide",
        "description": "Describe your task to get the matching API contract, prices, prerequisites and next steps. This is a $0 wallet-proof lookup, not the seller's paid service. No purchase is executed. Without a wallet, use /zeroclick/agent/guide.",
        "servers": [
          {
            "url": "https://agents.driftflight.com/zcj/yc2icdwnsrt4"
          }
        ],
        "security": [
          {
            "sellerAgentX402": []
          },
          {
            "sellerAgentMpp": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "goal": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "Describe the task and known inputs. Do not include credentials."
                  },
                  "quantity": {
                    "description": "Number of API calls, not returned items. Omit when unknown; describe desired output in goal.",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000
                  },
                  "budgetUsd": {
                    "description": "Total cash budget in USD. A quote does not authorize spending.",
                    "type": "string",
                    "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$"
                  },
                  "budgetExclusive": {
                    "type": "boolean"
                  },
                  "reviewAfterCalls": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000
                  },
                  "requirements": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "humanAvailable": {
                    "description": "Whether a human is in the loop; omit when unknown. Executing a human's request without further interruptions does not by itself mean false.",
                    "type": "boolean"
                  },
                  "payment": {
                    "description": "Known payment method for the eventual purchase, independent of this free lookup's wallet proof.",
                    "type": "string",
                    "enum": [
                      "x402",
                      "mpp",
                      "card"
                    ]
                  }
                },
                "required": [
                  "goal"
                ],
                "additionalProperties": false
              },
              "example": {
                "goal": "Find the available services, prices and purchase steps"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task guidance; inspect status before executing anything",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "quoted",
                        "catalog",
                        "ready",
                        "needs_input",
                        "blocked",
                        "unknown",
                        "unsupported",
                        "unavailable"
                      ]
                    },
                    "priceUsd": {
                      "type": "string",
                      "const": "0"
                    },
                    "guide": {
                      "type": "string",
                      "description": "Markdown guidance containing the task result, exact contract, pricing and next steps when available. No purchase is executed."
                    },
                    "guideUrl": {
                      "type": "string",
                      "format": "uri",
                      "description": "Wallet-free advisor endpoint for further planning or recovery."
                    }
                  },
                  "required": [
                    "status",
                    "priceUsd",
                    "guide",
                    "guideUrl"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "402": {
            "description": "$0 x402 or MPP wallet proof required; sign and retry the same request. No funds are transferred."
          },
          "503": {
            "description": "Advisor unavailable; use the wallet-free guide or direct storefront references"
          }
        },
        "x-payment-info": {
          "access": "payg",
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "scheme": "exact",
                "currency": "USDC"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "USD"
              }
            }
          ],
          "offers": [
            {
              "amount": "0",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "method": "tempo",
              "intent": "charge",
              "description": "Free seller advisor lookup"
            }
          ]
        }
      }
    }
  },
  "x-zeroclick-navigation-footer": {
    "instructions": [
      "Use this spec if it contains the operation and details you need. Otherwise, search or open a relevant service spec using the links below.",
      "Find service slugs in x-zeroclick-services or x-payment-info.rates[].service; use them in serviceSpecTemplate, never as request values.",
      "URL-encode template values. Search is ranked; service, path, and method filters are exact. Filters combine.",
      "Pages contain up to 10 operations; follow info.x-next or the Link header if you need more results. Shared operations retain all selector values."
    ],
    "fullSpec": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json",
    "services": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/services",
    "serviceSpecTemplate": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/services/{slug}/openapi.json",
    "searchTemplate": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json?q={text}",
    "operationTemplate": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json?path={path}&method={method}",
    "firstPage": "https://agents.driftflight.com/zcj/yc2icdwnsrt4/openapi.json?page=1"
  }
}
