🗨️Chat API

Integrate Alpha Chat in your product.

The API endpoint for Alpha Chat is compatible with OpenAI's Chat Completion API and can be used as a drop-in replacement by changing three lines of code:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_TOKEN_HERE",  # Replace OpenAI's token with AlphaKEK's
    base_url="https://api.alphakek.ai/v1"  # Switch to Alpha API server
)

response = client.chat.completions.create(
  model="nexus",  # Switch to Nexus model with crypto knowledge
  messages=[
    {"role": "user", "content": "What to expect from Ethereum ETFs?"}
  ]
)

Limitations

  • As of now, the Alpha Chat API will ignore every field not mentioned in the schema above, such as temperature or top_p. Instead, it will use the internal optimal values.

  • Function calling is not supported (except for the functions of Alpha Toolkit that are being called automatically by nexus and eclipse models.

This list of limitations is subject to change.


Chat API Costs

The pricing for Chat API is per request and depends on the model used. Learn more about API Credits at API Credits.

ModelAPI Credits per request

Versa

1

Nexus

2

Eclipse

3

📖pageAPI Usage Examples

Last updated