{"openapi":"3.1.0","info":{"title":"Sapiens Sintéticos x402 API","version":"1.1.0","description":"Image styles, image models, video, text, voice, music and data sold per call over x402, USDC on Base: no account, no key.","x-guidance":"Sapiens Sintéticos sells AI generation per call over x402: no account, no API key. Every URL below answers 402 with its price to a POST without payment, even with an empty body. Images: each URL under /api/x402/v1/styles/ is one image style of the house (a Krea 2 LoRA of ours), and each URL under /api/x402/v1/images/ is one image model (GPT Image 2.5 Flare and Sunburst at high quality, Nano Banana 2.1 Minimal, Nano Banana Pro, FLUX.2 Pro, Krea 3, Recraft V4, Z-Image Turbo). The price of a model URL comes in its 402 and moves with the upstream price, inside the range the OpenAPI declares. POST a JSON body with `prompt`, the scene to draw; the style or model comes from the URL, so do not send `model`. Optional fields: `n` (images, default 1, price is per image), `size` (1024x1024, 1024x1536 or 1536x1024), `response_format` (`b64_json` by default, or `url`). Without payment the URL answers 402 with the price: x402 v2 in the PAYMENT-REQUIRED header, x402 v1 in the body, scheme `exact`, USDC on Base. Pay with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1). The image is generated first and the payment settles after it, so a failed generation never charges. Sending the same payment header again returns the same image without paying twice. The receipt comes in PAYMENT-RESPONSE (v2) and X-PAYMENT-RESPONSE (v1). Most images answer 200 within 20 seconds. A slower one answers 202 with a job (`object: image.job`) and its `status_url`: GET it every 5 seconds, free and without a payment header, until it answers 200 with the image URLs and the receipt. Nothing is charged until the image is ready. Video: each URL under /api/x402/v1/videos/ is one video model (Seedance 2.0 Mini, 2.0 Fast, 2.0 and 2.5, text-to-video and image-to-video), plus two fixed-price clips: /videos/seedance-mini (5 s, 480p) and /videos/grok-lite (6 s, 480p). POST a JSON body with `prompt`; the model comes from the URL. Image-to-video URLs also need `image_url` (https). Optional: `aspect_ratio`, and on the per-model URLs `seconds`, `resolution` and `audio`. Without payment the URL answers 402 with the price of that exact body (an empty body gets the starting price). Sign for the 402's amount; up to 25% above it is also accepted, since the upstream price can move a little between the 402 and the paid call. The paid call returns 202 with the job: it does NOT wait for the video. GET the `status_url` every 15 to 30 seconds. The payment settles only when the video is ready, and the mp4 `url` comes in that same answer. A video that fails is never settled: nothing leaves your wallet. The 402 asks for a 30-minute authorization (maxTimeoutSeconds 1800) so a slow take still settles inside it. Sending the same payment header again returns the same job, never a second video. Text, voice, sound and data: /api/x402/v1/chat/completions (OpenAI chat format, no stream), /api/x402/v1/audio/speech (OpenAI speech format, returns the audio file), /api/x402/v1/audio/sound-effects and /api/x402/v1/audio/music (return JSON with the file URL), /api/x402/v1/data/model-prices and /api/x402/v1/data/ai-tools (JSON lists). Chat and speech are priced by the body (the worst case of that exact body); the other four have a fixed price. The 402 always carries the exact amount for the body you sent. Chat, speech and music need the payment signed with at least 4 minutes of validity (validBefore) when it arrives, sound effects 2.5 minutes; the 402's maxTimeoutSeconds (300) covers it. Music can take one to two minutes: if the track is not ready before the request ends, the answer is 409 generation_in_progress: send the same body with the same payment header again and you get the track, paid once. Everything is generated before the payment settles: a failed generation never charges, and the same payment header always returns what it bought (text and data kept 7 days)."},"servers":[{"url":"https://www.sapiensinteticos.com"}],"paths":{"/api/x402/v1/styles/krea-2-big-cities":{"post":{"operationId":"krea_2_big_cities","summary":"Generate a colossal cityscape image in the Big Cities style","description":"Krea 2 Big Cities. Colossal cityscapes: megastructures at impossible scale, bridges, haze and light. Krea 2 with the house Big Cities LoRA.","tags":["Image styles"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a suspension bridge between two kilometer-tall towers at dusk"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/styles/krea-2-sint-pixel":{"post":{"operationId":"krea_2_sint_pixel","summary":"Generate a pixel art game sprite on a flat background","description":"Krea 2 Sint Pixel. Pixel art game sprites: characters, enemies, items and props, side view on a flat background. Krea 2 with the house Sint Pixel LoRA.","tags":["Image styles"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a knight holding a lantern, idle pose"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/styles/krea-2-sint-isometric":{"post":{"operationId":"krea_2_sint_isometric","summary":"Generate a 2:1 isometric game asset on a clean background","description":"Krea 2 Sint Isometric. 2:1 isometric game assets: buildings, tiles and props on a clean background. Krea 2 with the house Sint Isometric LoRA.","tags":["Image styles"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a small blacksmith workshop with a chimney"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/styles/krea-2-sint-albedo":{"post":{"operationId":"krea_2_sint_albedo","summary":"Generate a tileable game texture as a flat albedo map","description":"Krea 2 Sint Albedo. Tileable game textures: flat albedo maps of stone, wood, metal, fabric and ground. Krea 2 with the house Sint Albedo LoRA.","tags":["Image styles"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"mossy cobblestone"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/gpt-image-2-5-sunburst":{"post":{"operationId":"gpt_image_2_5_sunburst","summary":"Generate a precise image with GPT Image 2.5 Sunburst: layouts, typography, exact detail","description":"GPT Image 2.5 Sunburst. GPT Image 2.5 Sunburst (OpenAI), the precise 2.5: layouts, typography and detail that has to land where you asked. Rendered at high quality in 1024x1024, 1536x1024 or 1024x1536.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.026235","max":"0.128260"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a clean product poster for a ceramic coffee mug, the title COLD BREW across the top"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/gpt-image-2-5-flare":{"post":{"operationId":"gpt_image_2_5_flare","summary":"Generate an image with GPT Image 2.5 Flare, fast and with legible text","description":"GPT Image 2.5 Flare. GPT Image 2.5 Flare (OpenAI), the fast 2.5 for volume: strong prompt following and legible text inside the image. Rendered at high quality in 1024x1024, 1536x1024 or 1024x1536.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.026235","max":"0.128260"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a hand-painted shop sign that reads OPEN LATE, rain on the glass"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/nano-banana-2-1-minimal":{"post":{"operationId":"nano_banana_2_1_minimal","summary":"Generate an image with Google Nano Banana 2.1 at its fastest setting","description":"Nano Banana 2.1 Minimal. Nano Banana 2.1 Minimal (Google): the Gemini image model with minimal thinking, its fastest and cheapest setting. Text to image at 1K.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.037620","max":"0.183920"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a red vintage bicycle leaning on a sunlit stone wall in Lisbon"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/nano-banana-pro":{"post":{"operationId":"nano_banana_pro","summary":"Generate a high-fidelity image with Google Nano Banana Pro","description":"Gemini 3 Pro. Nano Banana Pro (Google): the top Gemini image model here, for complex scenes and text inside the image. Text to image at 1K.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.212664","max":"1.039694"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"an infographic-style cutaway of a lighthouse, every floor labeled"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/flux-2-pro":{"post":{"operationId":"flux_2_pro","summary":"Generate a photoreal image with FLUX.2 Pro","description":"Generate a photoreal image with FLUX.2 Pro. FLUX.2 Pro (Black Forest Labs): photoreal images with close prompt adherence. Text to image at 1K.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.035444","max":"0.173286"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a close-up portrait of an old fisherman, morning light, shallow depth of field"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/krea-3":{"post":{"operationId":"krea_3","summary":"Generate an art-directed image with Krea 3","description":"Krea 3. Krea 3 (Krea): aesthetic, art-directed images with a strong sense of light and texture. Text to image at 1K.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.045000","max":"0.220000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a quiet greenhouse at dawn, fog on the glass, ferns in terracotta pots"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/recraft-v4":{"post":{"operationId":"recraft_v4","summary":"Generate a design-grade illustration or poster with Recraft V4","description":"Generate a design-grade illustration or poster with Recraft V4. Recraft V4 (Recraft): design-grade images, illustration and posters with clean typography. Text to image at 1K.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.059073","max":"0.288803"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a flat vector poster for a jazz night, the words BLUE NOTE in bold type"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/images/z-image-turbo":{"post":{"operationId":"z_image_turbo","summary":"Generate a fast, low-cost photoreal image from a text prompt","description":"Generate a fast, low-cost photoreal image from a text prompt. Z-Image Turbo (Tongyi-MAI): a fast photoreal text-to-image model at the lowest price per image here. Text to image at 1K.","tags":["Image models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.011815","max":"0.057764"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to draw. The style is set by the URL."},"n":{"type":"integer","description":"How many images (default 1)."},"size":{"type":"string","description":"1024x1024, 1024x1536 or 1536x1024."},"response_format":{"type":"string","description":"b64_json (default) or url."}},"required":["prompt"]},"example":{"prompt":"a cup of espresso on a marble counter, morning window light"}}}},"responses":{"200":{"description":"The image, in the OpenAI images format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"request_id":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string"},"url":{"type":"string"}}}}},"required":["request_id","data"]}}}},"202":{"description":"The image is still generating. Poll status_url; the payment settles when the image is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The image job id (img_ + 24 hex)."},"object":{"type":"string","enum":["image.job"]},"status":{"type":"string","enum":["processing","settling"]},"payment":{"type":"string","enum":["pending","settling"]},"status_url":{"type":"string","description":"GET it, free and without a payment header, until it answers 200 with the image URLs and the receipt."},"message":{"type":"string"}},"required":["id","object","status","payment","status_url"]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-mini":{"post":{"operationId":"video_seedance_mini","summary":"Generate a 5-second video clip from a text prompt with Seedance 2.0 Mini, fixed price","description":"Seedance 2.0 Mini, 5 s. Seedance 2.0 Mini (ByteDance), text to video: one 5-second take at 480p for a fixed price. Send `prompt`, and `aspect_ratio` (16:9, 9:16 or 1:1) if you want.","tags":["Video clips"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.250000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."}},"required":["prompt"]},"example":{"prompt":"a paper boat drifting down a rain gutter in a narrow Lisbon street, low angle, morning light"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/grok-lite":{"post":{"operationId":"video_grok_lite","summary":"Generate a 6-second video clip from a text prompt with Grok Imagine 1.5 Lite, fixed price","description":"Grok Imagine 1.5 Lite, 6 s. Grok Imagine 1.5 Lite (xAI), text to video: one 6-second take at 480p for a fixed price, the cheapest clip here. Send `prompt`, and `aspect_ratio` if you want.","tags":["Video clips"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.150000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."}},"required":["prompt"]},"example":{"prompt":"a fox trotting across a snowy field at dusk, handheld camera following"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-0-mini-text-to-video":{"post":{"operationId":"video_seedance_2_0_mini_text_to_video","summary":"Generate a video from a text prompt with Seedance 2.0 Mini","description":"Seedance 2.0 Mini Text-to-Video. Seedance 2.0 Mini (ByteDance), text to video: the fastest and cheapest Seedance. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.116640","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."}},"required":["prompt"]},"example":{"prompt":"a lighthouse keeper climbing a spiral staircase, camera rising with him"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-0-mini-image-to-video":{"post":{"operationId":"video_seedance_2_0_mini_image_to_video","summary":"Animate an image into a video with Seedance 2.0 Mini","description":"Seedance 2.0 Mini Image-to-Video. Seedance 2.0 Mini (ByteDance), image to video: `image_url` (https) is the first frame and `prompt` directs the motion. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.116640","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."},"image_url":{"type":"string","description":"https URL of the first frame (JPG or PNG)."}},"required":["prompt","image_url"]},"example":{"prompt":"the woman turns toward the window and smiles, curtains moving in the wind","image_url":"https://www.sapiensinteticos.com/og-image.jpg"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-0-fast-text-to-video":{"post":{"operationId":"video_seedance_2_0_fast_text_to_video","summary":"Generate a video from a text prompt with Seedance 2.0 Fast","description":"Seedance 2.0 Fast Text-to-Video. Seedance 2.0 Fast (ByteDance), text to video: Seedance 2.0 quality, faster. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.181440","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."}},"required":["prompt"]},"example":{"prompt":"a street food vendor flipping noodles in a wok, flames rising, night market"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-0-fast-image-to-video":{"post":{"operationId":"video_seedance_2_0_fast_image_to_video","summary":"Animate an image into a video with Seedance 2.0 Fast","description":"Seedance 2.0 Fast Image-to-Video. Seedance 2.0 Fast (ByteDance), image to video: `image_url` (https) is the first frame and `prompt` directs the motion. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.181440","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."},"image_url":{"type":"string","description":"https URL of the first frame (JPG or PNG)."}},"required":["prompt","image_url"]},"example":{"prompt":"the camera slowly pushes in as steam rises from the cup","image_url":"https://www.sapiensinteticos.com/og-image.jpg"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-0-text-to-video":{"post":{"operationId":"video_seedance_2_0_text_to_video","summary":"Generate a cinematic video from a text prompt with Seedance 2.0","description":"Seedance 2.0 Text-to-Video. Seedance 2.0 (ByteDance), text to video: the standard 2.0, the only one of the line with 1080p. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.226800","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."}},"required":["prompt"]},"example":{"prompt":"a cyclist racing down a mountain road at golden hour, drone shot pulling back"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-0-image-to-video":{"post":{"operationId":"video_seedance_2_0_image_to_video","summary":"Animate an image into a cinematic video with Seedance 2.0","description":"Seedance 2.0 Image-to-Video. Seedance 2.0 (ByteDance), image to video: `image_url` (https) is the first frame and `prompt` directs the motion. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.226800","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."},"image_url":{"type":"string","description":"https URL of the first frame (JPG or PNG)."}},"required":["prompt","image_url"]},"example":{"prompt":"the old man looks up from the chessboard and laughs","image_url":"https://www.sapiensinteticos.com/og-image.jpg"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-5-text-to-video":{"post":{"operationId":"video_seedance_2_5_text_to_video","summary":"Generate a high-end video from a text prompt with Seedance 2.5","description":"Seedance 2.5 Text-to-Video. Seedance 2.5 (ByteDance), text to video: the newest Seedance, best motion and camera control here. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.252720","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."}},"required":["prompt"]},"example":{"prompt":"a dancer spinning in a flooded warehouse, water spraying from her dress, slow motion"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/videos/seedance-2-5-image-to-video":{"post":{"operationId":"video_seedance_2_5_image_to_video","summary":"Animate an image into a high-end video with Seedance 2.5","description":"Seedance 2.5 Image-to-Video. Seedance 2.5 (ByteDance), image to video: `image_url` (https) is the first frame and `prompt` directs the motion. Native audio on request (`audio: true`). Send `seconds` (default set by the model, usually 5) and `resolution` (480p or 720p; 1080p only on Seedance 2.0).","tags":["Video models"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.252720","max":"15.00"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The scene to film: subject, action, camera and light. Up to 10,000 characters."},"aspect_ratio":{"type":"string","description":"16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Ignored by image-to-video (it follows the image)."},"seconds":{"type":"number","description":"Length in seconds (whole number, 1 to 15; the model says which it accepts). Price grows with it."},"resolution":{"type":"string","description":"480p, 720p or 1080p (1080p only on Seedance 2.0). Price grows with it."},"audio":{"type":"boolean","description":"Generate native audio with the picture. Default false."},"image_url":{"type":"string","description":"https URL of the first frame (JPG or PNG)."}},"required":["prompt","image_url"]},"example":{"prompt":"the knight lowers the sword and the banner behind him starts to burn","image_url":"https://www.sapiensinteticos.com/og-image.jpg"}}}},"responses":{"202":{"description":"The job, queued. Poll status_url; the payment settles when the video is ready.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"]},"status_url":{"type":"string","description":"GET it until status is completed; the mp4 URL comes once the payment settles."},"payment":{"type":"string","enum":["pending","settling","settled","not_settled","not_charged"]},"url":{"type":"string","description":"The mp4, when completed and settled."}}}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/chat/completions":{"post":{"operationId":"chat_completions","summary":"Chat with Claude, GPT, Gemini, Grok, DeepSeek and 25 more models in the OpenAI format","description":"OpenAI-compatible chat completion, one answer per call (no stream). Pick any of the house text models in `model` (Claude Fable, Opus, Sonnet and Haiku, GPT 6, Gemini 4, Grok 4.7, DeepSeek V4, Kimi K3, Qwen 3.8 and more); the price is the worst case of this body, quoted in the 402.","tags":["Text"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.005000","max":"1.000000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"A house text model id (default deepseek-v4-flash). GET /api/v1/models/pricing?type=text lists them."},"messages":{"type":"array","description":"[{ role: system | user | assistant, content: string }], up to 32000 characters in total."},"max_tokens":{"type":"integer","description":"Output cap, 1 to 4096 (default 1024). The price grows with it."},"temperature":{"type":"number","description":"0 to 2."},"top_p":{"type":"number","description":"0 to 1."}},"required":["messages"]},"example":{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Explain the x402 payment protocol in two sentences."}],"max_tokens":300}}}},"responses":{"200":{"description":"OpenAI-compatible chat completion, one answer per call (no stream). Pick any of the house text models in `model` (Claude Fable, Opus, Sonnet and Haiku, GPT 6, Gemini 4, Grok 4.7, DeepSeek V4, Kimi K3, Qwen 3.8 and more); the price is the worst case of this body, quoted in the 402.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object"},"finish_reason":{"type":"string"}}}},"usage":{"type":"object"}},"required":["choices"]},"example":{"object":"chat.completion","model":"deepseek-v4-flash","choices":[{"index":0,"message":{"role":"assistant","content":"x402 revives HTTP 402: the server answers with a price, the client signs a USDC payment and repeats the call. No account, no key."},"finish_reason":"stop"}]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/audio/speech":{"post":{"operationId":"audio_speech","summary":"Turn text into natural speech (ElevenLabs, MiniMax, Gemini and more voices) in the OpenAI format","description":"OpenAI-compatible text to speech: send `input` and get the audio file back (mp3 by default). Voices from 11 engines; the price follows the length of the text, quoted in the 402.","tags":["Audio"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.005000","max":"0.500000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","description":"The text to speak, up to 4096 characters."},"model":{"type":"string","description":"Voice engine (default tts-elevenlabs-turbo-v2-5): tts-elevenlabs-turbo-v2-5, tts-minimax-speech-02-hd, tts-gemini-3-1-flash, tts-kokoro, tts-xai-v1, tts-inworld-1-5-max, tts-chatterbox-hd, tts-orpheus, tts-gradium-v1, tts-qwen3-1-7b, tts-qwen3-0-6b."},"voice":{"type":"string","description":"Voice name of the engine."},"response_format":{"type":"string","description":"mp3, opus, aac, flac, wav, pcm (default mp3)."},"speed":{"type":"number","description":"0.25 to 4."}},"required":["input"]},"example":{"input":"Welcome to the house. Pay per call, no account needed."}}}},"responses":{"200":{"description":"OpenAI-compatible text to speech: send `input` and get the audio file back (mp3 by default). Voices from 11 engines; the price follows the length of the text, quoted in the 402.","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary","description":"The audio file, in the format asked."}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/audio/sound-effects":{"post":{"operationId":"audio_sound_effects","summary":"Generate a sound effect from a text description, up to 10 seconds (ElevenLabs)","description":"A sound effect from a description (ElevenLabs Sound Effects v2), up to 10 s. Returns the file URL on the house CDN.","tags":["Audio"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The sound you want, up to 1000 characters."},"seconds":{"type":"integer","description":"1 to 10 (default: the engine decides)."},"loop":{"type":"boolean","description":"Make it loop seamlessly."}},"required":["prompt"]},"example":{"prompt":"heavy wooden door creaking open in a stone castle hall","seconds":4}}}},"responses":{"200":{"description":"A sound effect from a description (ElevenLabs Sound Effects v2), up to 10 s. Returns the file URL on the house CDN.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"status":{"type":"string"},"url":{"type":"string","description":"The audio file on the house CDN."},"seconds":{"type":"number"},"request_id":{"type":"string"}},"required":["id","status","url"]},"example":{"id":"audio_0123456789abcdef01234567","object":"audio","status":"completed","url":"https://cdn.sapiensinteticos.com/api/audio/example.mp3","seconds":4}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/audio/music":{"post":{"operationId":"audio_music","summary":"Generate an original song or instrumental track from a text prompt (Google Lyria 3 Pro)","description":"A full music track from a description of style, mood and instruments, with optional lyrics (Google Lyria 3 Pro). Returns the file URL on the house CDN.","tags":["Audio"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.090000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Style, mood, tempo and instruments, up to 5000 characters."},"lyrics":{"type":"string","description":"Lyrics to sing, up to 4096 characters. Leave out for the engine to decide."}},"required":["prompt"]},"example":{"prompt":"warm lo-fi hip hop, dusty vinyl drums, mellow Rhodes chords, rain outside, 80 bpm"}}}},"responses":{"200":{"description":"A full music track from a description of style, mood and instruments, with optional lyrics (Google Lyria 3 Pro). Returns the file URL on the house CDN.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"status":{"type":"string"},"url":{"type":"string","description":"The audio file on the house CDN."},"seconds":{"type":"number"},"request_id":{"type":"string"}},"required":["id","status","url"]},"example":{"id":"audio_0123456789abcdef01234567","object":"audio","status":"completed","url":"https://cdn.sapiensinteticos.com/api/audio/example.mp3","seconds":120}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/data/model-prices":{"post":{"operationId":"data_model_prices","summary":"Compare the price of an AI model across providers and find the cheapest","description":"Price per unit of image, video and text models: the house price next to fal.ai, Replicate, Higgsfield, OpenRouter and the official APIs, with the cheapest offer of each model picked out. Search by model name or id.","tags":["Data"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Model name or id, or part of it (e.g. seedance, flux, claude)."},"type":{"type":"string","description":"image, video, text."},"limit":{"type":"integer","description":"1 to 50 (default 10)."}},"required":[]},"example":{"query":"seedance","type":"video"}}}},"responses":{"200":{"description":"Price per unit of image, video and text models: the house price next to fal.ai, Replicate, Higgsfield, OpenRouter and the official APIs, with the cheapest offer of each model picked out. Search by model name or id.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string"},"currency":{"type":"string"},"total":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["data"]},"example":{"object":"list","currency":"USD","total":1,"data":[{"model":"seedance-2-0-fast","type":"video","unit":"seconds","unit_price":0.052,"market":[{"source":"fal.ai","unit_price":0.084}],"cheapest":{"source":"Sapiens Sintéticos","unit_price":0.052}}]}}}},"402":{"description":"Payment Required"}}}},"/api/x402/v1/data/ai-tools":{"post":{"operationId":"data_ai_tools","summary":"Find AI tools by name, or the alternatives to one, from a curated directory","description":"Search the AItag directory of AI tools (aitag.app): by name, or the best-rated alternatives to a tool you name, with category, tags, rating, open source flag and link.","tags":["Data"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Tool name or part of it. Send this or alternatives_to."},"alternatives_to":{"type":"string","description":"A tool name: returns the best-rated tools in its category."},"category":{"type":"string","description":"Category in English, to narrow the search."},"limit":{"type":"integer","description":"1 to 20 (default 10)."}},"required":[]},"example":{"alternatives_to":"Midjourney","limit":5}}}},"responses":{"200":{"description":"Search the AItag directory of AI tools (aitag.app): by name, or the best-rated alternatives to a tool you name, with category, tags, rating, open source flag and link.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string"},"data":{"type":"array","items":{"type":"object"}}},"required":["data"]},"example":{"object":"list","data":[{"name":"Krea","category":"Image Generation","rating":9.1,"open_source":false,"url":"https://www.krea.ai","page":"https://aitag.app/tools/krea"}]}}}},"402":{"description":"Payment Required"}}}}}}