{"openapi":"3.1.0","info":{"title":"DeepAI","version":"1.0.0","description":"AI image tools as simple APIs. DeepAI generates images from text, edits photos from plain instructions, removes backgrounds, colorizes black and white photos, and upscales images with standard or creative enhancement. Every call is billed per image; the image generator and photo editor choose a quality tier per request. This server is a pay-per-use, transparent proxy in front of DeepAI's own API: it handles identity, payment, and proxying. Agents can purchase autonomously or with their human's approval. This document is the source of truth for agents: it lists the complete verified paid surface with each operation's live price in its x-payment-info. Endpoints not listed here are not part of the supported 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":"Call the operations listed in this document at https://deepai.pay.zeroclick.io. 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://deepai.pay.zeroclick.io/zcj/2h4b8diy0tly/manifest.json for the live services, meters, plans, prices, and any free included units, and https://deepai.pay.zeroclick.io/zcj/2h4b8diy0tly/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)."},"x-service-info":{"docs":{"homepage":"https://deepai.org/","apiReference":"https://deepai.pay.zeroclick.io/zcj/2h4b8diy0tly/openapi.json","llms":"https://deepai.pay.zeroclick.io/zcj/2h4b8diy0tly/llms.txt"}},"externalDocs":{"url":"https://deepai.pay.zeroclick.io/zcj/2h4b8diy0tly/llms-full.txt","description":"How to authenticate, pay, and call this API; links the upstream API reference."},"servers":[{"url":"https://deepai.pay.zeroclick.io/zcj/2h4b8diy0tly","description":"Pay-per-use access to DeepAI's API"}],"security":[{"payPerUse":[]}],"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 an authorization bearer credential (MPP). No upstream API key is needed, and an agent without a payment method can set one up instantly at no cost."}}},"paths":{"/api/background-remover":{"post":{"summary":"Removes the background from an image.","description":"Removes the background from an image. Pass the image as a URL. Returns a link to the cutout result.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","example":"https://example.com/photo.jpg","description":"URL of the image to process."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC"}}],"offers":[{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"$0.010000 per image (images)","intent":"charge","method":"tempo"}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["id","output_url"],"properties":{"id":{"type":"string","description":"Unique job identifier."},"output_url":{"type":"string","description":"Link to the image with the background removed."}}}}}},"402":{"description":"Payment required"}}}},"/api/colorizer":{"post":{"summary":"Adds natural color to black and white images.","description":"Adds color to black and white photos and historic images. Pass the image as a URL. Returns a link to the colorized result.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","example":"https://example.com/photo.jpg","description":"URL of the image to colorize."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC"}}],"offers":[{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"$0.010000 per image (images)","intent":"charge","method":"tempo"}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["id","output_url"],"properties":{"id":{"type":"string","description":"Unique job identifier."},"output_url":{"type":"string","description":"Link to the colorized image."}}}}}},"402":{"description":"Payment required"}}}},"/api/creative-upscale":{"post":{"summary":"Upscales an image while adding creative detail.","description":"Upscales an image while enhancing and adding detail. Pass the image as a URL. Returns a link to the upscaled result.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","example":"https://example.com/photo.jpg","description":"URL of the image to upscale."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC"}}],"offers":[{"amount":"80000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"$0.080000 per image (images)","intent":"charge","method":"tempo"}],"price":{"mode":"fixed","currency":"USD","amount":"0.080000"}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["id","output_url"],"properties":{"id":{"type":"string","description":"Unique job identifier."},"output_url":{"type":"string","description":"Link to the upscaled image."}}}}}},"402":{"description":"Payment required"}}}},"/api/image-editor":{"post":{"summary":"Edits a photo according to a text instruction.","description":"Applies AI edits to an image guided by a text instruction. Pass the image as a URL and the edit as text. Choose the quality tier with image_generator_version: genius or super_genius for the highest detail at 2k output. The genius tier also takes an art style in genius_preference: classic, anime, photography, graphic, or cinematic. Returns a link to the edited image.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["image","text","image_generator_version"],"properties":{"text":{"type":"string","example":"add a red hat","description":"Edit instruction."},"image":{"type":"string","example":"https://example.com/photo.jpg","description":"URL of the image to edit."},"genius_preference":{"enum":["classic","anime","photography","graphic","cinematic"],"type":"string","default":"classic","example":"classic","description":"Art style for the genius tier. Used only when image_generator_version is \"genius\"; omit it for other tiers. Defaults to classic."},"image_generator_version":{"enum":["genius","super_genius"],"type":"string","example":"genius","description":"Quality tier. Each tier bills its own per-image rate; super_genius renders at 2k."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC"}}],"offers":[{"amount":null,"currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"$0.080000 per image (genius_images) or $0.250000 per image (super_genius_2k_images)","intent":"charge","method":"tempo"}],"price":{"mode":"dynamic","currency":"USD","min":"0.080000","max":"0.250000"}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["id","output_url"],"properties":{"id":{"type":"string","description":"Unique job identifier."},"output_url":{"type":"string","description":"Link to the edited image."}}}}}},"402":{"description":"Payment required"}}}},"/api/text2img":{"post":{"summary":"Generates an image from a text description.","description":"Creates an image from scratch from a text description. Choose the quality tier with image_generator_version: hd, genius, or super_genius for the highest detail at 2k output. The genius tier also takes an art style in genius_preference: classic, anime, photography, graphic, or cinematic. Returns a link to the generated image.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","image_generator_version"],"properties":{"text":{"type":"string","example":"a serene mountain lake at sunrise","description":"Text description of the image to generate."},"genius_preference":{"enum":["classic","anime","photography","graphic","cinematic"],"type":"string","default":"classic","example":"classic","description":"Art style for the genius tier. Used only when image_generator_version is \"genius\"; omit it for other tiers. Defaults to classic."},"image_generator_version":{"enum":["hd","genius","super_genius"],"type":"string","example":"hd","description":"Quality tier. Each tier bills its own per-image rate; super_genius renders at 2k."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC"}}],"offers":[{"amount":null,"currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"$0.010000 per image (hd_images) or $0.080000 per image (genius_images) or $0.250000 per image (super_genius_2k_images)","intent":"charge","method":"tempo"}],"price":{"mode":"dynamic","currency":"USD","min":"0.010000","max":"0.250000"}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["id","output_url"],"properties":{"id":{"type":"string","description":"Unique job identifier."},"output_url":{"type":"string","description":"Link to the generated image."}}}}}},"402":{"description":"Payment required"}}}},"/api/torch-srgan":{"post":{"summary":"Upscales an image with super resolution.","description":"Upscales a low-resolution image using super resolution. Pass the image as a URL. Returns a link to the upscaled result.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","example":"https://example.com/photo.jpg","description":"URL of the image to upscale."}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC"}}],"offers":[{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"$0.010000 per image (images)","intent":"charge","method":"tempo"}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["id","output_url"],"properties":{"id":{"type":"string","description":"Unique job identifier."},"output_url":{"type":"string","description":"Link to the upscaled image."}}}}}},"402":{"description":"Payment required"}}}}}}