OpenParable
Skip to content
← Back to skills

Verging AI Chat

Agent Building
verging-ai-chat

Verging AI Chat is an Agent Skill for agent building published in the aiskillstore/marketplace repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generate AI chat completions using GPT-4o through the verging.ai proxy API with streaming (SSE) and non-streaming response support.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/aiskillstore/marketplace/blob/HEAD/skills/verging-ai/chat/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/verging-ai-chat, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

AI Chat / Text Generation — verging.ai

Generate AI chat completions using GPT-4o through the verging.ai proxy API. Supports both streaming (SSE) and non-streaming responses.

Authentication

All requests require an API key in the Authorization header:

Authorization: ApiKey vrg_sk_xxx

Replace vrg_sk_xxx with your verging.ai API key. You can generate one at https://verging.ai under your account settings.

Endpoint

POST https://verging.ai/api/v1/ai/chat
Content-Type: application/json

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes—Array of message objects {role, content}
modelstringNogpt-4oModel to use
temperaturefloatNo—Sampling temperature (0–2)
max_tokensintNo—Maximum tokens in the response
streambooleanNofalseEnable Server-Sent Events streaming

Each message object:

FieldTypeDescription
rolestringsystem, user, or assistant
contentstringThe message content

Requires a minimum balance of 5 credits before calling (post-deduct billing).

Examples

Non-streaming

curl -X POST https://verging.ai/api/v1/ai/chat \
  -H "Authorization: ApiKey vrg_sk_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Explain quantum computing in one paragraph."}
    ],
    "temperature": 0.7,
    "max_tokens": 256
  }'

Streaming (SSE)

curl -N -X POST https://verging.ai/api/v1/ai/chat \
  -H "Authorization: ApiKey vrg_sk_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user", "content": "Write a haiku about coding."}
    ],
    "stream": true
  }'

Response

Non-streaming

{
  "content": "Quantum computing leverages quantum mechanical phenomena...",
  "usage": {
    "prompt_tokens": 24,
    "completion_tokens": 85,
    "total_tokens": 109
  },
  "credits_consumed": 1
}

Streaming (SSE)

The response is a stream of Server-Sent Events. Each content chunk:

data: {"content": "Quantum "}

data: {"content": "computing "}

The final chunk includes usage and credits information:

data: {"usage": {"prompt_tokens": 24, "completion_tokens": 85, "total_tokens": 109}, "credits_consumed": 1}

data: [DONE]

Credits

Token TypeRate
Input1 credit / 10K tokens
Output3 credits / 10K tokens

Minimum charge: 1 credit per request.

Error Codes

HTTP StatusError CodeDescription
40240001Insufficient credits (minimum 5 required)
429—Rate limit exceeded (check X-RateLimit-Reset)
502—Upstream provider error
503—Service unavailable or upstream timeout

Error response format:

{
  "error_code": 40001,
  "message": "Insufficient credits. Required: 5, available: 2",
  "upstream_error": null
}