← APIs / AiSpace Venice
Verified

AiSpace Venice

Coinbase Bazaarby Coinbase Bazaar · marketplace

Pay-per-call x402 service at x402.aispace.bot, listed in the Coinbase Bazaar. Text-to-image generation on Venice models (Flux, SD3.5, GPT-Image, HunyuanImage, and more), paid per request in USDC on Base via x402, no API key. Resolve a model id from GET /api/v1/models?type=image and an optional style from GET /api/v1/image/styles.

computefederated
Price per request
$0.01
Base URL
https://gateway.apiosk.com/cbz-x402-aispace-bot
Technical Specs
Auth MethodNone (x402 payment proof only)
Response FormatJSON
Endpoints2
Endpoints
MethodPathDescriptionCost
POST /api/v1/chat/completions OpenAI-compatible chat on 100+ Venice models via x402 USDC (Base). Model from GET /api/v1/models?type=text; personas via /characters. Thinking models: empty content + reasoning_content is success; use venice_parameters.disable_thinking for plain text.
$0.01 default
View details
POST /api/v1/image/generate Text-to-image generation on Venice models (Flux, SD3.5, GPT-Image, HunyuanImage, and more), paid per request in USDC on Base via x402, no API key. Resolve a model id from GET /api/v1/models?type=image and an optional style from GET /api/v1/image/styles.
$0.02 default
View details
Endpoint documentation
POST/api/v1/chat/completions
$0.01 default
Description

OpenAI-compatible chat on 100+ Venice models via x402 USDC (Base). Model from GET /api/v1/models?type=text; personas via /characters. Thinking models: empty content + reasoning_content is success; use venice_parameters.disable_thinking for plain text.

Pricing
$0.01 default
Request schema
{
  "properties": {
    "choices[].message.reasoning_content": {
      "description": "On thinking models, chain-of-thought text. content may be empty if max_tokens is spent on thinking first (finish_reason=length). Check this field as well as content.",
      "type": "string"
    },
    "choices[].message.reasoning_details": {
      "description": "Structured thought signatures (Claude Opus / GPT-5.4 Pro etc). Pass back unchanged on the next turn.",
      "type": "string"
    },
    "max_tokens": {
      "description": "Optional. Buyer-chosen completion cap — this gateway does not set a default. Omit unless you want to bound output. On thinking models a small value can exhaust on reasoning_content and leave content empty (finish_reason=length).",
      "type": "integer"
    },
    "messages": {
      "description": "OpenAI chat messages: array of {role:'system'|'user'|'assistant', content:string}. On multi-turn tool use with reasoning models, round-trip assistant.reasoning_details verbatim.",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "model": {
      "description": "Venice text model id. Resolve live defaults via GET /api/v1/models/traits (illustrative: default / function_calling_default → zai-org-glm-5-2, default_reasoning → kimi-k3, most_intelligent → grok-4-7). List ids at GET /api/v1/models?type=text (e.g. zai-org-glm-5-2, kimi-k3, grok-4-7).",
      "type": "string"
    },
    "stream": {
      "description": "If true, stream tokens via SSE. Default false.",
      "type": "boolean"
    },
    "venice_parameters": {
      "properties": {
        "disable_thinking": {
          "description": "Skip chain-of-thought on reasoning models; forces a normal content reply.",
          "type": "boolean"
        },
        "strip_thinking_response": {
          "description": "Run thinking server-side but hide it from the client.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "venice_parameters.disable_thinking": {
      "description": "Set true to skip chain-of-thought on reasoning models (forces a normal content reply).",
      "type": "string"
    },
    "venice_parameters.strip_thinking_response": {
      "description": "If true, hide thinking from the client while still running it server-side.",
      "type": "string"
    }
  },
  "required": [
    "model",
    "messages"
  ],
  "type": "object"
}
Example response
{
  "choices": [
    {
      "finish_reason": "length",
      "index": 0,
      "message": {
        "content": "",
        "reasoning_content": "The user said \"hi\". A brief greeting — I should reply in kind.",
        "role": "assistant"
      }
    }
  ],
  "cost": {
    "diem": 0,
    "usd": 0
  },
  "created": 1791357300,
  "id": "chatcmpl-kimi-k3-reasoning-fixture",
  "model": "kimi-k3",
  "object": "chat.completion",
  "usage": {
    "completion_tokens": 32,
    "prompt_tokens": 16,
    "total_tokens": 48
  },
  "venice_parameters": {
    "disable_thinking": false,
    "enable_e2ee": true,
    "enable_web_citations": false,
    "enable_web_scraping": false,
    "enable_web_search": "off",
    "enable_x_search": false,
    "include_search_results_in_stream": false,
    "include_venice_system_prompt": true,
    "return_search_results_as_documents": false,
    "strip_thinking_response": false,
    "web_search_citations": []
  }
}
POST/api/v1/image/generate
$0.02 default
Description

Text-to-image generation on Venice models (Flux, SD3.5, GPT-Image, HunyuanImage, and more), paid per request in USDC on Base via x402, no API key. Resolve a model id from GET /api/v1/models?type=image and an optional style from GET /api/v1/image/styles.

Pricing
$0.02 default
Request schema
{
  "properties": {
    "enhance_prompt": {
      "description": "Optional. Rewrite the prompt before generation. Extra credits when a rewrite is generated; x-venice-enhanced-prompt header returns the final prompt.",
      "type": "boolean"
    },
    "model": {
      "description": "Venice image model id. See GET /api/v1/models?type=image (e.g. grok-imagine-image-2-0; grok-imagine-image remains a stable fallback, plus flux-2-pro, venice-sd35).",
      "type": "string"
    },
    "prompt": {
      "description": "Image description. Model-specific character limits apply.",
      "type": "string"
    },
    "style_preset": {
      "description": "Optional named style. See GET /api/v1/image/styles (e.g. \"Cinematic\", \"Anime\").",
      "type": "string"
    },
    "style_references": {
      "description": "Optional array of { image, strength? }. Only models with supportsStyleReferences=true. Raster only (no SVG).",
      "items": {
        "properties": {
          "image": {
            "description": "Base64, data URI, or http(s) URL (<8MB raster).",
            "type": "string"
          },
          "strength": {
            "description": "0.1–1 (default 0.5). Ignored when the model reports supportsStyleReferenceStrength=false.",
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "model",
    "prompt"
  ],
  "type": "object"
}
Example response
{
  "id": "yidY-aAgyVYbeSQfKnu4gaLS2FhTus0k",
  "images": [
    "UklGRkaBAABXRUJQVlA4IDqBAACQZwGdASoAAgACPhkMhEGhBFcvbAQAYSm3i1vP/1fFy8M/nmmzw39XzLNN9Nt+/Ez/o+YH9G/2fQs58/xP/neqj+H/6f1l"
  ],
  "request": {
    "data": {
      "embed_exif_metadata": false,
      "format": "webp",
      "height": 512,
      "hide_watermark": false,
      "model": "venice-sd35",
      "prompt": "a dot",
      "return_binary": false,
      "safe_mode": true,
      "seed": -238869555,
      "steps": 20,
      "width": 512
    },
    "success": true
  },
  "timing": {
    "inferenceDuration": 3377,
    "inferencePreprocessingTime": 3389,
    "inferenceQueueTime": 557,
    "total": 3953
  }
}