This guide gets you from zero to a working API call in under five minutes.
Step 1 — Get your API key
Log in to your Crucible dashboard and navigate to Settings → API Keys. Create a new key and store it securely. Your key will only be shown once.
Step 2 — Install the SDK
Crucible offers official SDKs for Node.js and Python. Install via your package manager:
npm install crucible-sdk
pip install crucible
Step 3 — Make your first request
js
import Crucible from 'crucible-sdk';
const client = new Crucible({ apiKey: process.env.CRUCIBLE_API_KEY });
const response = await client.completions.create({
model: 'crucible-1',
prompt: 'Summarize the key obligations in this contract: ...',
reasoning_mode: 'deep',
});
console.log(response.output);js
import Crucible from 'crucible-sdk';
const client = new Crucible({ apiKey: process.env.CRUCIBLE_API_KEY });
const response = await client.completions.create({
model: 'crucible-1',
prompt: 'Summarize the key obligations in this contract: ...',
reasoning_mode: 'deep',
});
console.log(response.output);js
import Crucible from 'crucible-sdk';
const client = new Crucible({ apiKey: process.env.CRUCIBLE_API_KEY });
const response = await client.completions.create({
model: 'crucible-1',
prompt: 'Summarize the key obligations in this contract: ...',
reasoning_mode: 'deep',
});
console.log(response.output);Step 4 — Read the response
The API returns a structured response object. The output field contains the final model output. The reasoning_trace field, available on deep reasoning mode, contains the model's step-by-step reasoning chain.
You're live. From here, explore Reasoning Modes to understand how to control model behavior, or check Available Models for a full breakdown of model tiers.