---
title: "How to use DeepAI with your AI agent"
url: https://zeroclick.ai/resources/how-to-use-deepai-with-your-ai-agent
fetched_at: 2026-11-07T13:27:32.881Z
---

# How to use DeepAI with your AI agent

Get more done with your agent · How-to · Published 2026-10-02. Canonical page: https://zeroclick.ai/resources/how-to-use-deepai-with-your-ai-agent

DeepAI generates, edits, cleans up and upscales images for your AI agent, starting at $0.01 per image. DeepAI sells through ZeroClick: your agent sends its request to the [DeepAI storefront](https://deepai.pay.zeroclick.io), pays that one request from a USDC wallet over x402 or MPP, and gets back a link to the finished image. It needs no signup and no API key.

## Key takeaways

- Send image jobs to `https://deepai.pay.zeroclick.io` with the same path and body DeepAI's API uses, and pay the 402 that comes back.
- Draft with the hd tier at $0.01 per image, then render the winner at genius ($0.08) or super genius 2K ($0.25).
- Background removal, colorization and super resolution each cost $0.01 per image, and creative upscale costs $0.08.
- An agent without a wallet can create one at no cost, or hand a card checkout to a person.

## What DeepAI is

DeepAI got its start in late 2016, when it launched one of the first browser-based text-to-image generators. Today DeepAI is a creative platform for generating images, editing photos, making short videos and more, in the browser and through simple APIs. The company is committed to radical accessibility, and you can explore it for free without creating an account. You can try the tools yourself at [deepai.org](https://deepai.org/).

That approach fits how agents work. An agent given an image task won't sit through an onboarding flow or wait on a sales call. It needs to arrive, ask for an image and get one, and with DeepAI on ZeroClick it can also pay on the spot. We tell the story of the partnership in [DeepAI × ZeroClick: AI image tools any agent can buy](https://zeroclick.ai/blog/deepai-ai-image-tools-any-agent-can-buy).

An agent storefront is the machine-readable version of a business. It is a URL where an agent reads what is for sale, the live prices and the payment steps, then buys without anyone filling in forms. It works as a transparent proxy in front of DeepAI's own API, handling identity, payment and forwarding. For how storefronts work, see [What is an agent storefront?](https://zeroclick.ai/resources/what-is-an-agent-storefront)

## What agents use DeepAI for

The storefront sells six image tools and two video tools. Each one matches a job an agent is commonly given.

| Job your agent is given | Service | Path | What to send |
|---|---|---|---|
| Generate a hero image, illustration or thumbnail from a prompt | image-generator | `POST /api/text2img` | `text`, `image_generator_version` |
| Edit a photo from a plain instruction, such as "add a red hat" | photo-editor | `POST /api/image-editor` | `image`, `text`, `image_generator_version` |
| Remove the background from a product photo or profile picture | background-remover | `POST /api/background-remover` | `image` |
| Colorize a black and white photo or archive scan | image-colorizer | `POST /api/colorizer` | `image` |
| Upscale a small or compressed photo, for example for print | super-resolution | `POST /api/torch-srgan` | `image` |
| Upscale a soft image and add new detail as it enlarges | creative-upscale | `POST /api/creative-upscale` | `image` |
| Make a short video from a text prompt | text-to-video | `POST /video-api/text2video` | `prompt`, `mode`, `duration`, `shape` |
| Animate a still image into a clip | image-to-video | `POST /video-api/img2video` | `image`, optional `prompt`, `mode`, `duration` |

For the image tools, `image` is the URL of the source image. Each image tool returns an `id` and an `output_url` that links to the result. The generator's tiers are `hd`, `genius` and `super_genius`. The genius tier also takes a `genius_preference` of `classic`, `anime`, `photography`, `graphic` or `cinematic`. The video tools return a job id right away, and your agent then polls the free status endpoint at `GET /video-api/status/{id}`. The [API reference](https://deepai.pay.zeroclick.io/openapi.json) lists every field.

## Prices

Image tools are billed per image. Video tools are billed per second of requested video.

| Service | Tier or mode | Price |
|---|---|---|
| Image generator | hd / genius / super genius (2K) | $0.01 / $0.08 / $0.25 per image |
| Photo editor | genius / super genius (2K) | $0.08 / $0.25 per image |
| Background remover | | $0.01 per image |
| Image colorizer | | $0.01 per image |
| Super resolution | | $0.01 per image |
| Creative upscale | | $0.08 per image |
| Text to video | hd / hollywood (2K) | $0.20 / $0.30 per second |
| Image to video | hd / hollywood | $0.20 / $0.30 per second |

The tiers give your agent a simple dial: explore cheaply, then spend on the version that ships. Twenty hd drafts cost $0.20. Re-rendering the best one at super genius adds $0.25, and removing its background adds $0.01, so the finished image costs $0.46 in total. A 5-second hd video costs $1.00, and a 15-second hollywood video costs $4.50.

Prices come from the live [price list](https://deepai.pay.zeroclick.io/manifest.json), and every 402 states the exact amount before your agent pays. Read the price at call time instead of caching it.

## How to buy and call DeepAI from your agent

1. Point your agent at the [DeepAI storefront](https://deepai.pay.zeroclick.io), whose [agent guide](https://deepai.pay.zeroclick.io/llms.txt) points to the API catalog, the list of services and the payment instructions.
2. Match the task to a service and path from the table above, or ask the free task guide at `https://deepai.pay.zeroclick.io/zeroclick/agent/guide?goal=URL_ENCODED_TASK`, which needs no wallet and never buys anything.
3. Send the request to the storefront with the path and JSON body from the API reference and no payment header. The storefront prices it and answers with a 402.
4. Check the 402's `payment.amountUsd` against your budget before you pay.
5. Pay the challenge from your wallet, using x402 for USDC on Base or MPP for USDC on Tempo.
6. Retry the identical request, byte for byte, with the payment proof attached, because the payment is bound to the body of the request it priced.
7. Read `output_url` from the response and download or pass on the image. For video, send a [free agent credential](https://deepai.pay.zeroclick.io/auth.md)'s access token as `ZC-Agent-Authorization: Bearer <access token>` on the paid request, then poll `GET /video-api/status/{id}` with `Authorization: Bearer` and the same token until the job completes, and download it within an hour.

## Example requests

Send the unpaid request first. This one asks the generator for a single hd image:

```http
POST https://deepai.pay.zeroclick.io/api/text2img
Content-Type: application/json

{"text": "a serene mountain lake at sunrise", "image_generator_version": "hd"}
```

Expect a 402 in reply. Its body carries `payment.amountUsd`, the `plan` and a `protocols` block with a challenge for each rail. The signable challenges also arrive as headers, so a standard x402 or MPP client can settle them without reading the body. The lines below show the pattern, with placeholders where the signed challenges go:

```http
HTTP/1.1 402 Payment Required
payment-required: <x402 challenge>
www-authenticate: <MPP challenge>
```

Sign the challenge and resend the same request with the proof. On x402, the payload goes in `x-payment`. On MPP, send `Authorization: Payment <credential>` instead:

```http
POST https://deepai.pay.zeroclick.io/api/text2img
Content-Type: application/json
x-payment: <signed x402 payload>

{"text": "a serene mountain lake at sunrise", "image_generator_version": "hd"}
```

The paid response follows the API reference's schema. A `zc-billing` header comes with it and reconciles `authorizedUsd` against `chargedUsd`:

```json
{"id": "<job id>", "output_url": "<link to the generated image>"}
```

## If your agent has no wallet

Your agent has four options:

- **Create a wallet.** Your agent can set one up itself, free and without signing up, then follow the steps above.
- **Pay a single call by card.** Card works for any pay-as-you-go call of $0.50 or more, so it doesn't cover a one-cent image. Follow the card block in the 402, POST to its `payUrl`, and retry the call with the `zc-payment-id` header. The hosted checkout supports browser agents with Link Pay Tokens. If your agent can't complete it, send the checkout URL to whoever approves the purchase. The [card checkout instructions](https://deepai.pay.zeroclick.io/payment/card.md) cover the details, including polling the `statusUrl` before retrying.
- **Buy Credits by card.** For one-cent images, prepaid credit is the card route. Register a free agent credential with the [identity guide](https://deepai.pay.zeroclick.io/auth.md), then send `POST /plans/{planId}/purchase` with `Authorization: Bearer <token>`, `checkout: true` and an amount of at least $0.50. The Credits plan's id and `purchase.url` are in the price list. A $25 balance, sent as `{ "amountUsd": "25.000000" }`, covers 2,500 hd images, and `POST /extend` tops it up.
- **Hand off to a person.** Share any DeepAI page as `https://deepai.pay.zeroclick.io/outclick?url={URL-encoded seller page}` so the referral is recorded.

## What to know

**What the storefront covers.** It sells the eight services above. The subscription prices on deepai.org are a separate channel for people, so use the storefront's own quote for agent pricing.

**Photo editor tiers.** The catalog also lists an hd rate for the photo editor, but its request schema accepts only `genius` or `super_genius` for `image_generator_version`. In practice an edit starts at $0.08.

**Video limits.** A video runs 5 to 15 seconds, and a prompt can be up to 3,000 characters. For image to video, send the source as a public URL or a base64 data URL of up to about 7.5 MB, and leave `shape` as `auto` in hollywood mode.

**What is charged, and when.** Each pay-as-you-go call is one 402 and one charge, and paying it completes the purchase under ZeroClick's buyer terms. Video is billed on the seconds you request, and polling the video status endpoint is free. A delivered response without a `zc-billing` header billed nothing. A payment or an HTTP 202 doesn't mean the job is done, so check that the output arrived. Once a paid call reaches DeepAI, your agent receives DeepAI's own status code and body.

**Errors worth handling.** The [error reference](https://deepai.pay.zeroclick.io/errors.md) lists every code. These are the ones your agent is most likely to meet:

| Error | What to do |
|---|---|
| `payment_request_mismatch` (409) | A payment was spent on a request other than the one it priced. Get a new 402 for this request and pay that. |
| `settlement_failed` | Fix the wallet, for example `insufficient_funds`, then start over for a fresh challenge. |
| `payment_provider_unavailable` | This is the only payment error to retry unchanged, with backoff. |
| `payment_consumed` | The payment was already settled. Check the original request's delivery before paying again. |
| `bearer_required` (401) | Plan purchases need a registered agent credential. Register one, then retry with the bearer. |
| `usage_exhausted` | The Credits balance ran out. Top up with `POST /extend`. |

## Frequently asked questions

### Does DeepAI need an API key for AI agents?

No. Through the ZeroClick storefront, your agent pays each request with a signed payment, which also serves as its identity, so no signup or API key is needed.

### How much does DeepAI cost per image?

Image generation costs $0.01 at hd, $0.08 at genius and $0.25 at super genius 2K. Background removal, colorization and super resolution cost $0.01 per image, and creative upscale costs $0.08.

### Can my agent pay DeepAI with x402?

Yes. The x402 challenge arrives in the `payment-required` header for Base USDC, and your agent retries the same request with the signed payload in `x-payment`.

### How do I remove an image background with an AI agent?

Send the image URL to `POST /api/background-remover` on the DeepAI storefront and pay the $0.01 challenge. The response's `output_url` links to the cutout.

### Can my agent use DeepAI without a crypto wallet?

Yes. It can create a free wallet, pay calls of $0.50 or more by card, buy Credits by card from $0.50, or hand the purchase to a person through a tracked checkout link.

### Do I have to use an AI agent to use DeepAI?

No. A person can use DeepAI directly at [deepai.org](https://deepai.org/), free without an account, or subscribe to DeepAI Pro for $9.99 a month for high-volume usage, private generations, no ads and API access. The storefront is the route for an agent that pays per request without signing up.
