Skip to main content

Minimal request

{
  "model": "gpt-4.1",
  "input": "Summarize the core value of Api.Go in 3 bullet points."
}

cURL example

curl https://mass.apigo.ai/v1/responses \
  -H "Authorization: Bearer $TIDEMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4.1",
    "input": "Summarize the core value of Api.Go in 3 bullet points."
  }'

Python example

from openai import OpenAI

client = OpenAI(
    base_url="https://mass.apigo.ai/v1",
    api_key="<TIDEMIND_API_KEY>",
)

response = client.responses.create(
    model="gpt-4.1",
    input="Summarize the core value of Api.Go in 3 bullet points.",
)

print(response.output_text)

Node.js example

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://mass.apigo.ai/v1",
  apiKey: process.env.TIDEMIND_API_KEY,
});

const response = await client.responses.create({
  model: "gpt-4.1",
  input: "Summarize the core value of Api.Go in 3 bullet points."
});

console.log(response.output_text);

Best practices

  • Prefer responses for new integrations that may grow into tools or multimodal input
  • Reuse previous_response_id instead of resending the entire history every turn
  • Build your parser around both output_text and output[]