https://api.inceptionlabs.ai/v1.
Install
Authentication
The client reads your key from theINCEPTION_API_KEY environment variable by default. You can also pass it explicitly when constructing the client.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mercury 2.5 is available | Read the announcement →
Official Python and TypeScript client libraries for the Inception API.
https://api.inceptionlabs.ai/v1.
| Language | Package |
|---|---|
| Python | inceptionai |
| TypeScript / JavaScript | inceptionai |
pip install inceptionai
npm install inceptionai
INCEPTION_API_KEY environment variable by default. You can also pass it explicitly when constructing the client.
from inceptionai import Inception
# Reads INCEPTION_API_KEY from the environment
client = Inception()
# Or pass it explicitly:
# client = Inception(api_key="your_api_key_here")
import Inception from 'inceptionai';
// Reads INCEPTION_API_KEY from the environment
const client = new Inception();
// Or pass it explicitly:
// const client = new Inception({ apiKey: 'your_api_key_here' });
from inceptionai import Inception
client = Inception()
completion = client.chat.completions.create(
model="mercury-2.5",
messages=[{"role": "user", "content": "What is a diffusion model?"}],
)
print(completion.choices[0].message.content)
import Inception from 'inceptionai';
const client = new Inception();
const completion = await client.chat.completions.create({
model: 'mercury-2.5',
messages: [{ role: 'user', content: 'What is a diffusion model?' }],
});
console.log(completion.choices[0].message.content);
Was this page helpful?