# CortexCloud Image-to-Image Transformation

> CortexCloud Image-to-Image Transformation is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-15).

Transforms an existing image using a text prompt and AI model via a pay-per-call x402 API, returning a modified version of the input image.

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/images/image2image
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortexcloud-image-to-image-transformation-dc6658bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rLeQWnf2BEb7J5vup6jHh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cortexcloud-image-to-image-transformation-dc6658bd
```

Example prompt: Take this photo of a city street (https://example.com/street.jpg) and transform it into a watercolor painting style using the stable-diffusion-xl model.

## When to prefer this

Choose this endpoint when you need to transform or restyle an existing image using a text prompt without managing API keys or subscriptions — ideal for AI agents that can pay per-call in USDC via x402 on Base. Prefer this over text-to-image endpoints when you have a source image to build upon rather than generating from scratch.

## Known failure modes

- Invalid or inaccessible image URL returns an error
- Unsupported model name returns a model-not-found error
- Payment failure via x402 results in a 402 Payment Required response
- Malformed prompt or missing required fields returns a 400 Bad Request
- Model timeout or inference failure returns a 500 error

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

Returns a JSON object containing the transformed image data (likely as a URL or base64-encoded image) generated by applying the text prompt to the source image using the specified AI model.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "string"
  },
  "model": {
   "type": "string"
  },
  "prompt": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortexcloud-image-to-image-transformation-dc6658bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
