ToolAssay

Locus public pay-per-use API

Locus public pay-per-use API

Answeringour last check, 2026-09-24
1 of 1checks answered this week
754 msmedian answer time
$0.046listed price per call
$0.046price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://grok.x402.paywithlocus.com/grok/image-generate

CategoryImage and media
Provider hostgrok.x402.paywithlocus.com
Networkseip155:8453
Payment schemesupto
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.046 754 ms

Example input (from the provider)

{
  "body": {
    "model": "grok-imagine-image-2.0",
    "prompt": "x402 discovery"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": true,
          "properties": {
            "aspect_ratio": {
              "description": "Aspect ratio (e.g. '1:1', '16:9', '9:16', '4:3', '3:2', 'auto')",
              "type": "string"
            },
            "model": {
              "description": "Metered x402 image model ID: 'grok-imagine-image-2.0', 'grok-imagine-image', or 'grok-imagine-image-quality'",
              "type": "string"
            },
            "n": {
              "description": "Number of images to generate (default 1)",
              "type": "number"
            },
            "prompt": {
              "description": "Text description of the image to generate",
              "type": "string"
            },
            "resolution": {
              "description": "Output resolution: '1k' (default) or '2k'",
              "type": "string"
            },
            "response_format": {
              "description": "Response format: 'url' (default) or 'b64_json'",
              "type": "string"
            }
          },
          "required": [
            "prompt",
            "model"
          ],
          "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"
}

This page as JSON