Use your own Fireworks credits through Keywords AI
Go to the Providers page
Add your Fireworks credentials.
customer_credentials
{ // Rest of the request body "customer_credentials": { "fireworks": { "api_key": "YOUR_FIREWORKS_API_KEY", } } }
Example
from openai import OpenAI client = OpenAI( base_url="https://api.keywordsai.co/api/", api_key="YOUR_KEYWORDSAI_API_KEY", ) response = client.chat.completions.create( model="gpt-4o", messages=[{"role":"user", "content":"Tell me a long story"}], extra_body={"customer_credentials": { "fireworks": { "api_key": "YOUR_FIREWORKS_API_KEY", } } } )
Was this page helpful?