Build a request. Check the result.

The request builder and JSON checker run locally in this page. They do not make a model request or require an account. The optional site API test is separate.

Build your request

One connection for your software. The label free selects automatic routing; you do not choose a model provider.

cURL · OpenAI-compatible chat
curl 'https://chinagenai.com/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "free",
  "messages": [
    {
      "role": "user",
      "content": "Extract the supplier quote into JSON with these fields: supplier, quantity, currency, unit_price, moq, incoterm, port, payment, lead_time_days. Use null for missing facts. Preserve currencies and units. Do not infer shipping costs or promise delivery. Return JSON only.\n\nExample only: Cedar offers 250 units at USD 5.20 each, MOQ 200, EXW Ningbo. Payment: 30% deposit, 70% before dispatch. Lead time is not stated."
    }
  ],
  "max_tokens": 256,
  "stream": false
}'

This builder makes no API call. Site key issuance follows the current availability and free limits. Never include a real key in a shared request file.

Try the site’s free pool

Free pool paused

The free API pool is paused while upstream access and its cost limits are verified. Guides and local tools remain available.

At most 20 attempts per account per UTC day, 256 output tokens per request and 2 active site requests. Failed attempts count toward safety limits. No paid fallback. Use one short item; long text and batches may exceed this output limit.

Running this test sends the text to the site’s upstream model provider. Use only text you are permitted to send.

Check a structured result

Fictional source for the example:

Example only: Cedar offers 250 units at USD 5.20 each, MOQ 200, EXW Ningbo. Payment: 30% deposit, 70% before dispatch. Lead time is not stated.

The starting JSON is handwritten example data, not a live model response. This checker validates fields and types, not whether a model’s claims are true.

Text stays in this page’s memory. It is not uploaded or saved by the checker.