{"openapi":"3.1.0","info":{"title":"Autopilot Studio API","version":"1.0.0","description":"Pay-per-call AI services. Pay with USDC on Base through x402 (no account, no API key). AI-made art, prompts, stories and guides — fresh every day.","x-guidance":"Call an endpoint without payment to get HTTP 402 and a PAYMENT-REQUIRED header; sign it with an x402 client and retry. Prices are fixed in USD (USDC on Base)."},"servers":[{"url":"https://autopilot-studio.kariguetoazul.workers.dev"}],"paths":{"/v1/image":{"post":{"operationId":"image","summary":"Text-to-image (SDXL-Lightning), square, phone or desktop. Returns a base64 image.","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string"},"orientation":{"type":"string","enum":["square","phone","desktop"]}},"required":["prompt"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":["x402"]}}},"/v1/translate":{"post":{"operationId":"translate","summary":"Neural machine translation between 15+ languages.","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"to":{"type":"string","description":"target language code, e.g. pt, en, es, fr, de"},"from":{"type":"string"}},"required":["text","to"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":["x402"]}}},"/v1/prompt":{"post":{"operationId":"prompt","summary":"Turns an idea into 5 optimized text-to-image prompts.","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idea":{"type":"string"},"style":{"type":"string"}},"required":["idea"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":["x402"]}}},"/v1/tts":{"post":{"operationId":"tts","summary":"Text-to-speech (MeloTTS): up to 600 characters in English, Spanish, French, Chinese, Japanese or Korean. Returns a base64 WAV (16-bit PCM, 44.1 kHz).","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"lang":{"type":"string","enum":["en","es","fr","zh","jp","kr"]}},"required":["text"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":["x402"]}}},"/v1/embed":{"post":{"operationId":"embed","summary":"Multilingual text embeddings (BGE-M3, 1024 dimensions) for up to 16 texts per call.","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"texts":{"type":"array","items":{"type":"string"}}},"required":["texts"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":["x402"]}}},"/v1/summarize":{"post":{"operationId":"summarize","summary":"Summarizes a text (80 to 12000 characters) as bullets, a paragraph or a one-line TL;DR.","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"format":{"type":"string","enum":["bullets","paragraph","tldr"]},"max_words":{"type":"integer"}},"required":["text"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004"},"protocols":["x402"]}}},"/v1/transcribe":{"post":{"operationId":"transcribe","summary":"Speech-to-text (Whisper large-v3-turbo) for short audio clips (base64 WAV/MP3/FLAC, up to about 1.5 MB).","tags":["paid"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audio":{"type":"string","description":"base64-encoded audio"},"language":{"type":"string"}},"required":["audio"]}}}},"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":["x402"]}}},"/v1/pack/latest":{"get":{"operationId":"pack","summary":"PromptVault Pro Pack: the latest pro prompts with variations and example outputs (JSON; add ?format=md for Markdown).","tags":["paid"],"responses":{"200":{"description":"Result (after payment)"},"402":{"description":"Payment required (x402 v2): see the PAYMENT-REQUIRED header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.99"},"protocols":["x402"]}}}},"x-discovery":{"ownershipProofs":[]}}