agentsclimarketplace

Chat

Skill aiskillstore/marketplace/skills/verging-ai/chat

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

Install
npx -y skills add aiskillstore/marketplace --skill chat

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

3.9 KB, 913 tokens by cl100k_base, as published. Nobody here has run it

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
}

What ships with it: 2 files

36.2 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.