Replacing your OpenAI integration with ZC Technologies can drastically reduce your costs without changing your application's behavior. This guide demonstrates how to switch from OpenAI to ZC Technologies, maintaining the same functionality while saving up to 70% on your language model costs.
To illustrate the transition, let's start with a typical OpenAI integration. Your application likely uses the /v1/chat/completions endpoint to interact with OpenAI's models. Here is an example of how you might be currently integrating with OpenAI:
import requests
headers = {
'Authorization': 'Bearer YOUR_OPENAI_API_KEY',
'Content-Type': 'application/json',
}
data = {
'model': 'gpt-3.5-turbo',
'messages': [{'role': 'user', 'content': 'Hello!'}],
}
response = requests.post('https://api.openai.com/v1/chat/completions', headers=headers, json=data)
print(response.json())
To migrate to ZC Technologies, you need to change the endpoint to our /v1/chat and update the API key to our Bearer token. The rest of your code can remain unchanged. Here is the equivalent code snippet for ZC Technologies:
import requests
headers = {
'Authorization': 'Bearer YOUR_ZC_TECHNOLOGIES_API_KEY',
'Content-Type': 'application/json',
}
data = {
'model': 'qwen2.5:72b',
'messages': [{'role': 'user', 'content': 'Hello!'}],
}
response = requests.post('https://zcx.zctechnologies.org/v1/chat', headers=headers, json=data)
print(response.json())
ZC Technologies offers competitive pricing plans that can significantly reduce your costs. For instance, our Pro plan at $499 per month provides 12 million tokens, costing $42 per million tokens, which is a 70% reduction compared to OpenAI's pricing.
Switching to ZC Technologies is a straightforward process that can lead to substantial savings. By merely changing the endpoint and API key, you can leverage our Qwen 2.5 models on dedicated NVIDIA GB10 silicon. For more details on our pricing and plans, visit our website.