Serverless Inference
Send requests to Crusoe-hosted models over an OpenAI-compatible API or interact with them directly using the Intelligence Foundry's chat interface. Crusoe handles serving, scaling, and optimization—so you don't have to manage any GPU infrastructure.
1. Log in or create an account
Log in to the Crusoe Cloud Console or Create an account.
After you log in, switch to Intelligence Foundry using the product selector in the top navigation.
2. Generate an API key
To create an API key via the console:
- From the console, select the organization name in the top left corner of the console and click Manage Organization.
- Select Security > Inference API keys from the left navigation.
- Click Create.
- (Optional) Enter an alias for your key.
- (Optional) Enter an expiration date for your key.
- Copy the API key. Make sure that you save the key in a secure location before leaving the page.
For more information, see Manage API keys.
3. (Optional) Browse available models
You can use the OpenAI-API compatible endpoint at api.inference.crusoecloud.com to access the models below. You can also interact with all of the models using the Intelligence Foundry's chat interface. All Meta models provided by Crusoe are "Built with Llama".
For each model's pricing information, see pricing.
4. Send a request
Use the OpenAI-compatible endpoint at api.inference.crusoecloud.com. The example below queries meta-llama/Llama-3.3-70B-Instruct:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("CRUSOE_API_KEY"),
base_url="https://api.inference.crusoecloud.com/v1",
)
completion = client.chat.completions.create(
model="meta-llama/Llama-3.3-70B-Instruct",
messages=[
{"role": "system", "content": "You are a helpful, concise assistant."},
{"role": "user", "content": "Who is Robinson Crusoe?"},
],
)
print(completion.choices[0].message.content)
Additional resources: