Skip to documentation
DEVELOPER DOCS / HASHBIDXMODEL ACCESS. ONE INTEGRATION.

THE INTEGRATION GUIDE

API Reference

Everything you need to integrate with the HashBid inference gateway.

Core endpoints

POST /v1/chat/completions

Chat Completions

An OpenAI Chat Completions compatible endpoint for most chat models, with tool calling and SSE streaming.

POST /v1/responses

Responses

An OpenAI Responses compatible endpoint using input-based requests and streaming events. The gateway keeps no conversation state: fields such as previous_response_id and store are ignored, so send the full history in input for multi-turn conversations.

POST /v1/messages

Messages

An Anthropic Messages compatible endpoint for Claude SDK, Claude Code, tools, and thinking. The body is validated strictly against the Anthropic schema, so OpenAI fields such as stop or response_format are rejected with 400. POST /v1/messages/count_tokens estimates input tokens.

POST /v1/embeddings

Embeddings

Turns text into vector embeddings for search, clustering, and RAG. OpenAI Embeddings compatible — the official SDKs work unchanged. Billed on input tokens only; embeddings generate no output tokens, and there is no streaming form of this endpoint.

POST /v1/images/generations

Generate image

OpenAI-compatible image generation. Model-agnostic — works with Volcano Engine Seedream, Bailian qwen-image, OpenAI gpt-image, and others. The gateway forwards only the fields listed below and ignores the rest; values such as size are validated by the upstream model.

POST /v1/videos

Video generation

OpenAI-compatible video generation, run asynchronously. The create call waits up to about 60 seconds: if generation finishes in that time the result comes back directly; otherwise it returns the current status, and you poll GET /v1/videos/{id}, then download the video from GET /v1/videos/{id}/content once it completes. Only application/json bodies are accepted for now; unlisted fields are ignored.

POST /v1/gemini/v1beta/models/{model}:generateContent

Gemini generateContent

Pass-through to Google Gemini's native API, supporting generateContent, streamGenerateContent, and countTokens (estimated locally). Useful for SDKs and tools that speak the Gemini wire format, such as Gemini CLI. Authenticate with the Authorization: Bearer or x-goog-api-key header; a key in the key query parameter is rejected.

Additional endpoints

BUILD WITH HASHBIDX

Find your model. Make your first call.

Models & pricing