Skip to content

Latest commit

 

History

History
141 lines (94 loc) · 5.97 KB

README.md

File metadata and controls

141 lines (94 loc) · 5.97 KB

IteraCompute Migration Kit

Moving an existing client to Auto

The Free promotion has ended. If your top-ups from before the cutoff still have a positive total after refunds, you retain your tier’s monthly Auto allowance. Later top-ups cannot unlock or increase it. Check legacy eligibility.

  1. Open Usage in the console and check your Auto tokens from a plan, a reward or a retained monthly allowance. When those tokens cannot cover a request, using wallet funds requires enabling pay-as-you-go and having enough balance. Wallet billing is off by default. Auto allowances and billing
  2. Use an IteraCompute key that allows Auto. Keep the base URL below, set model to Auto, and remove any model-specific chat_template_kwargs from your request. See the Auto request parameters or choose a specific model from the live catalog.
  3. Follow the SDK setup below for a first reply, or use the text summarizer to turn a meeting note into a file.

Use the official OpenAI SDK with an explicit IteraCompute key, base URL and exact API model ID:

Setting Value
Base URL https://api.iteracompute.com/v1
Key variable ITERACOMPUTE_API_KEY
Model ID for Auto Auto
Endpoint Chat Completions

API model IDs must match the public Models endpoint. Do not add iteracompute/ to an API model ID. These examples explicitly pass ITERACOMPUTE_API_KEY; an existing OPENAI_API_KEY is never used as a fallback.

1. Install dependencies

Clone this repository first:

git clone https://github.com/IteraCompute/migration-kit.git
cd migration-kit

Choose Python (3.10+) or TypeScript (Node.js 22+, npm).

Python, macOS / Linux / WSL:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt

Python, Windows PowerShell (activation is not required):

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt

TypeScript, any platform:

npm ci

2. Configure your IteraCompute key

If you need an account, register and verify your email or sign in with Google. In API Keys, select or create a key that permits Auto. Save a newly created key’s secret when it is first shown.

Set the variable in the same terminal you will use to run the example. Replace your-api-key with your IteraCompute key.

Bash / zsh / WSL:

export ITERACOMPUTE_API_KEY="your-api-key"

Windows PowerShell:

$env:ITERACOMPUTE_API_KEY = "your-api-key"

Keep the key on the server or in your local terminal. Do not commit it, paste it into issues, or put it in browser code. .env files are ignored but are not automatically loaded by these examples.

3. Make a request

Run one of the following commands from the repository root to send a short prompt to Auto.

Python, macOS / Linux / WSL:

python examples/openai_python.py

Python, Windows PowerShell:

.\.venv\Scripts\python.exe examples/openai_python.py

TypeScript, any platform:

npm run quickstart

4. Check the reply

Expected stdout (npm also prints its script banner):

Hello!

Wording may vary. Success requires a non-empty choices[0].message.content and exit code 0. Missing keys, API errors and empty replies exit with code 1. Registration or HTTP 200 alone does not complete this check. The bundled examples use a 180-second timeout and no automatic retries.

Examples

Example What you will run and verify
Text summarizer Use Auto to summarize a bundled meeting note, print the bullets and save them to a UTF-8 file.
Archived OpenCode example Historical code-editing walkthrough for a retired endpoint.

The October 2026 acceptance record documents runs against the former endpoint. The summarizer README includes the checks for a new Auto run.

Common errors

Symptom Fix
Set ITERACOMPUTE_API_KEY Set an actual IteraCompute key in this terminal; a placeholder, blank value or only OPENAI_API_KEY is insufficient.
ModuleNotFoundError: openai / tsx not found Install dependencies from the repository root; use the same Python interpreter / virtual environment that ran pip. For TypeScript run npm ci.
HTTP 401 The IteraCompute key is missing, invalid or revoked. Replace it; do not use an OpenAI key.
HTTP 403 Check the key’s allowed models and your available Auto tokens in Usage.
HTTP 404 Keep /v1 in the base URL. Replace the retired model ID with Auto or an exact ID from the live catalog.
HTTP 400 Check the selected model’s request fields and input/output limits.
HTTP 429 Check limits in the console and honor Retry-After before retrying.
Empty model reply Check the response against the current Auto quickstart.
Network / timeout / HTTP 5xx Check connectivity and provider status; retry a single request after a delay. Do not disable TLS verification.

Check current pricing and API documentation before switching models.

Development checks

After installing both sets of dependencies:

python -m unittest discover -s tests -v

On Windows use .\.venv\Scripts\python.exe instead of python. These offline tests verify the actual SDK request body, IteraCompute authentication, missing keys, empty replies, HTTP errors and summary file writes. They use fake credentials and do not establish live API acceptance.

API docs · Integrations · Pricing CLI