agents

Chat Completions Openai

OpenAI-compatible chat completions endpoint.

Use this endpoint to integrate with any OpenAI-compatible client.

Example with OpenAI Python client:

from openai import OpenAI

client = OpenAI(
    api_key="your-agent-api-key",
    base_url="https://studio-api.meganova.ai/api/agents/v1/your-agent-api-key"
)

response = client.chat.completions.create(
    model="agent",
    messages=[{"role": "user", "content": "Hello!"}]
)
post/agents/v1/{api_key}/chat/completions

Request

  • Base URL
    https://studio-api.meganova.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://studio-api.meganova.ai/agents/v1/{api_key}/chat/completions
  • Auth
    none declared

Path parameters

api_keystring required

Request body

modelstring nullable
temperaturenumber nullable
max_tokensinteger nullable
streamboolean nullable
top_pnumber nullable
frequency_penaltynumber nullable
presence_penaltynumber nullable
stopstring[] nullable
userstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.