Use your own Together AI credits through Keywords AI
customer_credentials
{ // Rest of the request body "customer_credentials": { "togetherai": { "api_key": "YOUR_TOGETHERAI_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": { "togetherai": { "api_key": "YOUR_TOGETHER_API_KEY", } } } )
Was this page helpful?