# photo-editor

> Edits a photo from a text instruction. Send the image and the edit together. Choose genius or super_genius for 2K output. Each request is billed per image at the chosen tier.

Part of the DeepAI API. [All services](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/services). [Storefront guide](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/llms.txt).

Call this service and pay per use. A call is billed on every meter below; the lowest rate is $0.08 / image (genius_images).

## Pricing

### genius_images (per image)

| Plan | Type | Price | Included free |
| --- | --- | --- | --- |
| Pay as you go | pay as you go | $0.08 / image | - |
| Credits | credit | $0.08 / image | - |

Cheapest without a plan: $0.08 / image (Pay as you go).

### super_genius_2k_images (per image)

| Plan | Type | Price | Included free |
| --- | --- | --- | --- |
| Pay as you go | pay as you go | $0.25 / image | - |
| Credits | credit | $0.25 / image | - |

Cheapest without a plan: $0.25 / image (Pay as you go).

## Buy a plan

Plan purchases need an agent bearer, registered at [auth.md](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/auth.md): present `Authorization: Bearer <token>`, then settle the priced 402. A bare purchase returns `401 bearer_required`. Already bought here? `GET https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/agent/entitlements` with your bearer lists what you hold.

- Credits (credit): `POST https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/plans/pln_f2c4af030eeb4fe1baff0/purchase` with `{ "amountUsd": "<amount>" }`, a whole-cent amount of at least $0.50.

Full purchase contract (amounts, card checkout, top-ups): [llms-full.txt](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/llms-full.txt).

## How to call

API reference: https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/services/photo-editor/openapi.json - consult this service’s spec for any operations, parameters, request bodies, or response schemas you still need. Shared operations retain selector values for all their services: each operation's `x-payment-info` names the service it bills by slug, and this service's slug is `photo-editor`. The slug identifies the service in prices and usage reports only; never send it as a request value. When one operation serves several services, its request body schema lists the accepted values of the field that selects the service (a model id, for example): send one of those exactly as written.

Send your request to `https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/<path>` and settle the 402. How to pay: [payment.md](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/payment.md). Errors: [errors.md](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/errors.md). Full recipe: [llms-full.txt](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/llms-full.txt). Identity and claiming: [auth.md](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/auth.md). Machine catalog: [manifest.json](https://deepai.pay.zeroclick.io/zcj/iun2svxfe92e/manifest.json).

