text-embedding-004
text-embedding-004 with budget-friendly pricing. focused AI solutions.
Capability Radar
About text-embedding-004
"Specialized capabilities"
text-embedding-004 is Unknown's budget-friendly model featuring focused context window (4K). Specialized capabilities, this model delivers purpose-built for specific tasks.
⚡ Key Strengths
- Specialized capabilities
- Best price-to-performance ratio
- OpenAI SDK compatible
- Production-ready reliability
🎯 Best Use Cases
- High-volume API processing
- Cost-sensitive production applications
- Data analysis and extraction
- API integration and automation
- Business intelligence and insights
Technical Specifications
Quick Start Guide
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: "<YOUR_OKROUTER_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "text-embedding-004",
messages: [
{ role: "user", content: "Hello! What can you do?" }
],
});
console.log(completion.choices[0].message);
}
main();Getting started with text-embedding-004 is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. text-embedding-004 is fully compatible with the OpenAI Chat Completions API. distinctive features include Standard context handling and Embedding support.
Interactive Playground
Parameters Setup
Controls randomness: Lowering results in less random completions.
Return data chunks as they arrive
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: process.env.OKROUTER_API_KEY,
});
const completion = await client.chat.completions.create({
model: "text-embedding-004",
messages: [{ role: "user", content: "Hello world!" }],
temperature: 0.7,
stream: true,
});Frequently Asked Questions
?How much does text-embedding-004 cost?
text-embedding-004 costs $0.80 per 1M input tokens and $3.20 per 1M output tokens via OkRouter. This is 20% cheaper than OpenRouter with the same great performance.
?Is text-embedding-004 compatible with OpenAI SDK?
Yes! text-embedding-004 works seamlessly with all OpenAI SDKs (Python, JavaScript, Go, etc.). Simply change your base_url to api.okrouter.com and use your OkRouter API key. No code changes needed.
?What is text-embedding-004 best used for?
text-embedding-004 excels at high-volume api processing, cost-sensitive production applications, data analysis and extraction. It's budget-friendly and perfect for high-volume production workloads.