Orion Api Key Verified Guide

async function main() const completion = await client.chat.completions.create( messages: [ role: 'user', content: 'Write a haiku about APIs.' ], model: 'orion-2.0', ); console.log(completion.choices[0]);

print(response.choices[0].message.content) import OrionClient from 'orion-sdk'; const client = new OrionClient( apiKey: process.env.ORION_API_KEY, ); Orion Api Key

curl -X POST https://api.orion.ai/v1/fine_tuning/jobs \ -H "Authorization: Bearer $ORION_API_KEY" \ -F "training_file=@data.jsonl" \ -F "model=orion-2.0" Retrieval-Augmented Generation (RAG) systems rely on embedding APIs. Use your key to convert documents into vectors: async function main() const completion = await client

A: Yes, unless you have specifically enabled IP whitelisting. A single key works globally, though this is not recommended for security hygiene. The Orion API Key is superior for developers

The Orion API Key is superior for developers who need fine-grained access control and budget tracking per team member or microservice. Advanced Use Cases for Your Orion API Key Once you have mastered the basics, leverage your Orion API Key for more sophisticated tasks: 1. Multi-Key Load Balancing If you have multiple Orion accounts (for redundancy), you can rotate API keys programmatically:

export ORION_API_KEY="orion_sk_live_xxxxxxxxxxxxx" Ensure your .gitignore file includes files like .env or secrets.json where your Orion API Key might live. 3. Rotate Keys Quarterly Set a calendar reminder every 90 days to generate a new key and deprecate the old one. This reduces the blast radius of a potential data breach. 4. Employ Scoped Permissions If you have a microservices architecture, generate separate keys for each service. Your billing microservice does not need the same permissions as your public-facing chat widget. How to Use the Orion API Key (Code Examples) Once you have your key, integration takes less than five minutes. Orion follows a RESTful architecture similar to OpenAI's spec, making migration effortless. Basic cURL Request To test if your key works: