{
  "x402Version": 2,
  "id": 26899,
  "slug": "26899",
  "resource": "https://www.trezalabs.com/api/x402/image",
  "description": "Image generation: a prompt in, one image back in the same response. 7 models including Google Nano Banana and Nano Banana Pro, OpenAI GPT Image 2, Seedream 5.0 Pro and FLUX.2 Pro, square to 21:9, up to 4K, from $0.02. GET this URL for every model and price. No account or API key: the payment is the only credential.",
  "type": "http",
  "serviceName": "Treza",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xaE393a9CD728F7397F50f6f8C88096a0F3D2b42C",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "60000",
      "amountUsd": 0.06,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EX4MyYWHc7NKBGuytmMpxixM7ovSWYLNy5acN2mFfoGd",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "60000",
      "amountUsd": 0.06,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "aspectRatio": "1:1",
            "model": "nano-banana",
            "prompt": "a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "aspectRatio": "1:1",
            "image": "https://www.trezalabs.com/api/media/generated/x402_image/1a2b3c4d.png?s=...&c=...",
            "model": "nano-banana",
            "paidUsd": 0.06,
            "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
            "status": "success",
            "statusUrl": "https://www.trezalabs.com/api/x402/image?runId=...&token=...",
            "transaction": "0x..."
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "aspectRatio": {
                    "default": "1:1",
                    "description": "Each model sells its own; GET this URL.",
                    "enum": [
                      "1:1",
                      "16:9",
                      "9:16",
                      "4:3",
                      "3:4",
                      "3:2",
                      "2:3",
                      "4:5",
                      "5:4",
                      "21:9"
                    ],
                    "type": "string"
                  },
                  "async": {
                    "default": false,
                    "description": "true: answer at once, status running with a statusUrl.",
                    "type": "boolean"
                  },
                  "model": {
                    "default": "nano-banana",
                    "description": "Prices: nano-banana $0.06; nano-banana-2 1K $0.10, 512 $0.07, 2K $0.15, 4K $0.22; nano-banana-pro 1K $0.20, 2K $0.20, 4K $0.35; gpt-image-2 medium $0.10, low $0.02, high $0.36; seedream-5-pro 2K $0.13, 1K $0.07; flux-2-pro $0.05 (1:1) to $0.09; recraft-v4.1 $0.05.",
                    "enum": [
                      "nano-banana",
                      "nano-banana-2",
                      "nano-banana-pro",
                      "gpt-image-2",
                      "seedream-5-pro",
                      "flux-2-pro",
                      "recraft-v4.1"
                    ],
                    "type": "string"
                  },
                  "prompt": {
                    "description": "What the image should show.",
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "quality": {
                    "description": "gpt-image-2.",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "type": "string"
                  },
                  "resolution": {
                    "description": "nano-banana-2, nano-banana-pro, seedream-5-pro.",
                    "enum": [
                      "512",
                      "1K",
                      "2K",
                      "4K"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "prompt"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "image",
    "image-generation",
    "text-to-image",
    "nano-banana",
    "gpt-image",
    "bazaar"
  ],
  "sourceHost": "www.trezalabs.com",
  "lastUpdated": "2026-10-13T06:03:05.914Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 5,
    "lastCalledAt": "2026-10-13T06:03:05.627Z"
  },
  "metadata": {
    "serviceName": "Treza",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "aspectRatio": "1:1",
              "model": "nano-banana",
              "prompt": "a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "aspectRatio": "1:1",
              "image": "https://www.trezalabs.com/api/media/generated/x402_image/1a2b3c4d.png?s=...&c=...",
              "model": "nano-banana",
              "paidUsd": 0.06,
              "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
              "status": "success",
              "statusUrl": "https://www.trezalabs.com/api/x402/image?runId=...&token=...",
              "transaction": "0x..."
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "aspectRatio": {
                      "default": "1:1",
                      "description": "Each model sells its own; GET this URL.",
                      "enum": [
                        "1:1",
                        "16:9",
                        "9:16",
                        "4:3",
                        "3:4",
                        "3:2",
                        "2:3",
                        "4:5",
                        "5:4",
                        "21:9"
                      ],
                      "type": "string"
                    },
                    "async": {
                      "default": false,
                      "description": "true: answer at once, status running with a statusUrl.",
                      "type": "boolean"
                    },
                    "model": {
                      "default": "nano-banana",
                      "description": "Prices: nano-banana $0.06; nano-banana-2 1K $0.10, 512 $0.07, 2K $0.15, 4K $0.22; nano-banana-pro 1K $0.20, 2K $0.20, 4K $0.35; gpt-image-2 medium $0.10, low $0.02, high $0.36; seedream-5-pro 2K $0.13, 1K $0.07; flux-2-pro $0.05 (1:1) to $0.09; recraft-v4.1 $0.05.",
                      "enum": [
                        "nano-banana",
                        "nano-banana-2",
                        "nano-banana-pro",
                        "gpt-image-2",
                        "seedream-5-pro",
                        "flux-2-pro",
                        "recraft-v4.1"
                      ],
                      "type": "string"
                    },
                    "prompt": {
                      "description": "What the image should show.",
                      "maxLength": 2000,
                      "type": "string"
                    },
                    "quality": {
                      "description": "gpt-image-2.",
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    },
                    "resolution": {
                      "description": "nano-banana-2, nano-banana-pro, seedream-5-pro.",
                      "enum": [
                        "512",
                        "1K",
                        "2K",
                        "4K"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "prompt"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.trezalabs.com",
    "manifest_name": "www.trezalabs.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}