1. Create an API key
Create or sign in to your IteraCompute account, then create a key in the Console.
Read a meeting note, call Auto and save a useful summary. Start with the complete Python project, then use the SDK configurations below in your own application.
Create or sign in to your IteraCompute account, then create a key in the Console.
Set base_url in Python or baseURL in JavaScript, then use Chat Completions.
Use the exact API Model ID for your chosen model. Check its context and capabilities before enabling agent or vision features.
Keep API keys in your server environment or tool credential store. Replace the example key field with your own key where applicable.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.iteracompute.com/v1",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.chat.completions.create(
model="Auto",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=512,
)
text = response.choices[0].message.content
if not text or not text.strip():
raise RuntimeError("Empty model reply: activation is incomplete.")
print(text)import OpenAI from "openai";
if (!process.env.ITERACOMPUTE_API_KEY) {
throw new Error("Set ITERACOMPUTE_API_KEY on the server.");
}
const client = new OpenAI({
baseURL: "https://api.iteracompute.com/v1",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.chat.completions.create({
model: "Auto",
messages: [{ role: "user", content: "Hello!" }],
max_tokens: 512,
});
const text = response.choices[0].message.content;
if (!text || !text.trim()) throw new Error("Empty model reply: activation is incomplete.");
console.log(text);Read a small UTF-8 meeting note, call Auto and save three summary bullets to summary.txt. The complete Python CLI project includes setup and error handling.
A summary file containing the launch date, owners, deferred work and blockers.
Exit code 0, a non-empty summary.txt matching the printed summary, and facts checked against the input.
On October 14, the team agreed to launch the customer feedback dashboard on October 21.
Maya owns the release checklist and will finish it by October 18.
Leo will add CSV export before the launch. A mobile layout is deferred to the next release.
The launch is blocked until the export tests pass and the support guide is reviewed.• Customer feedback dashboard launch decision: go live on October 21, but the launch is blocked until CSV export tests pass and the support guide is reviewed.
• Maya owns the release checklist and must finish it by October 18; Leo will add CSV export before launch.
• Mobile layout is deferred to the next release.
Saved: summary.txtExample output; wording may vary. An empty API reply does not create or replace the output file.
# Bash / zsh / WSL; set ITERACOMPUTE_API_KEY in your environment first.
curl --fail-with-body https://api.iteracompute.com/v1/chat/completions \
-H "Authorization: Bearer $ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"Auto","messages":[{"role":"user","content":"Reply with exactly: Hello!"}],"max_tokens":512}'Check that choices[0].message.content contains visible text; HTTP 200 alone is insufficient. Reasoning may consume the output budget. For Auto, use the first Auto request example and then send a prompt inside your tool.
Capabilities describe the IteraCompute API. Feature availability in your workflow also depends on the tool and its settings; reasoning controls vary by model.
GPT-6.1 Sol · Chat Completions · reasoning_effort=low Interface support · Responses example →Python uses base_url; JavaScript uses baseURL. Pass the IteraCompute key explicitly: the SDK default environment variable is not ITERACOMPUTE_API_KEY.
For the text examples above, call client.chat.completions.create and read choices[0].message.content. Responses examples and response.output_text use a different API.
For a text test, check that the response contains visible text and that the requested output budget fits the model.
Check your available Auto allowance in Usage. Wallet charges require you to enable pay-as-you-go.
Check that the key allows Auto and that you have plan tokens, rewards or opt-in wallet billing.
Connect your key, choose a model and send your first request.