# FLUX.2 Klein 4B Image Generation via Chat Completions

> FLUX.2 Klein 4B Image Generation via Chat Completions is a paid API for AI agents from x402.slinkylayer.ai, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-14).

Generates images from text prompts using the FLUX.2 Klein 4B model via a chat completions-style API interface.

## Facts

- Endpoint: POST https://x402.slinkylayer.ai/api/v1/proxy/2cbf19e9-c878-45ae-a901-3dcada443fd3/chat-completions-flux-2-klein
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-slinkylayer-ai-9ead51d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y45JHd1L6OrMMAfCy_Oi4

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 x402-slinkylayer-ai-9ead51d0 -d '<json body>'
```

Example prompt: Generate an image of a serene mountain lake at sunset with golden reflections on the water and pine trees in the foreground — use the FLUX.2 Klein model with image modality.

## When to prefer this

Choose this endpoint when you need text-to-image generation using the FLUX.2 Klein 4B model specifically, accessible via a chat completions-style interface. Prefer this over generic image APIs when you want FLUX-quality output with a familiar OpenAI-compatible message format and are willing to pay per-call in USDC via x402 protocol.

## Known failure modes

- Invalid or missing model field returns 400 error
- Missing modalities array causes request failure
- Empty or malformed messages array results in generation error
- Payment failure or insufficient USDC balance blocks the request
- Prompt too long or containing disallowed content returns rejection
- Model overload or timeout may return 503 error

## How this service works

Generate images from text prompts using FLUX.2 Klein 4B via chat completions.

## Output

Returns a chat completion response object containing the generated image data (likely as a base64-encoded image or URL), produced by the FLUX.2 Klein 4B model based on the input text prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "model",
  "messages",
  "modalities"
 ],
 "properties": {
  "model": {
   "type": "string"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "modalities": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "input": {
  "type": "http",
  "method": "POST",
  "bodyType": "json",
  "bodyFields": {
   "model": {
    "type": "string",
    "required": true
   },
   "messages": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "role": {
       "type": "string"
      },
      "content": {
       "type": "string"
      }
     }
    },
    "required": true
   },
   "modalities": {
    "type": "array",
    "items": {
     "type": "string"
    },
    "required": true
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-slinkylayer-ai-9ead51d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.slinkylayer.ai](https://www.zero.xyz/host/x402.slinkylayer.ai/llms.txt)
