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

OpenAI Responses compatible

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/responses

Key request parameters

ParameterTypeDescription
modelstring · RequiredModel identifier
inputstring | InputItem[] · RequiredPlain text or structured input
instructionsstringSystem instructions converted to a system message
streambooleanWhether to enable SSE; defaults to false
max_output_tokensintegerMaximum number of output tokens

Key response parameters

ParameterTypeDescription
idstringResponse ID
statusstringcompleted when the response finishes
outputOutputItem[]Model output items
usageobjectInput, output, and total token counts
X-HashBid-Costdecimal stringCharge for this call (response header, non-streaming requests only); currency in X-HashBid-Cost-Currency

Integration examples

Replace the API key and model ID in these examples with your values.

cURL
cURL
curl https://hashbidx.ai/v1/responses \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model":"<MODEL_ID>","input":"Hello, HashBid"}'
Python
Python
from openai import OpenAI

client = OpenAI(api_key="<YOUR_API_KEY>", base_url="https://hashbidx.ai/v1")
response = client.responses.create(
    model="<MODEL_ID>", input="Hello, HashBid"
)
print(response.output_text)
Node.js
Node.js
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://hashbidx.ai/v1",
});

const response = await client.responses.create({
  model: "<MODEL_ID>",
  input: "Hello, HashBid",
});
console.log(response.output_text);
Go
Go
body, _ := json.Marshal(map[string]any{
  "model": "<MODEL_ID>",
  "input": "Hello, HashBid",
})
req, _ := http.NewRequest("POST",
  "https://hashbidx.ai/v1/responses", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer <YOUR_API_KEY>")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
Rust
Rust
let response = reqwest::Client::new()
    .post("https://hashbidx.ai/v1/responses")
    .bearer_auth("<YOUR_API_KEY>")
    .json(&serde_json::json!({
        "model": "<MODEL_ID>", "input": "Hello, HashBid"
    }))
    .send().await?;

If the response includes X-Request-Id, include it when troubleshooting an issue.

All API endpoints
BUILD WITH HASHBIDX

Find your model. Make your first call.

Models & pricing