DEV Community

ModelFild
ModelFild

Posted on

One API key for chat, image, and video

If you are wiring a product that needs a chat model, an image model, and a short video model, the annoying part is usually the accounts, not the HTTP calls. Each vendor has its own key, base URL, and billing page. ModelFold is a hosted API that puts those calls behind one key. This note is the concrete setup, with the prices copied from the public pages on 23 November 2026. Those numbers move. Open the linked page before you budget a job.

Disclosure: the author works on ModelFold.

What one key actually reaches

Create a key in the dashboard, then point an OpenAI-compatible client at https://modelfold.ai/v1. The same key is also accepted on the other documented bases:

  • Chat completions: POST https://modelfold.ai/v1/chat/completions
  • Images: POST https://modelfold.ai/v1/images/generations
  • Video: POST https://modelfold.ai/v1/videos/generations
  • Audio: POST https://modelfold.ai/v1/audio/generations
  • Anthropic-style messages, for Claude Code and similar clients: https://modelfold.ai/anthropic (the client appends /v1/messages)
  • OpenAI Responses, for Codex: https://modelfold.ai/openai/v1
  • xAI-style Responses: https://modelfold.ai/xai/v1

Model IDs are not stable guesses. Read them from GET https://modelfold.ai/v1/models or copy them from the model page. A name that worked last month can be renamed.

A chat call

This spends credits if you run it. Set MODELFOLD_API_KEY to your own key and MODEL_ID to an ID returned by /v1/models.

from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["MODELFOLD_API_KEY"],
    base_url="https://modelfold.ai/v1",
)
response = client.chat.completions.create(
    model=os.environ["MODEL_ID"],
    messages=[{"role": "user", "content": "Reply with the single word pong."}],
)
print(response.choices[0].message.content)
Enter fullscreen mode Exit fullscreen mode

Input and output tokens are priced separately. On the public pricing page, usage is rounded to two decimal credits per request, with a 0.01-credit minimum. Thinking tokens are billed as output. The amount reserved before a job and the amount settled after it can differ; the model page shows the quote.

Two prices from the public model pages, as a scale check rather than a promise:

  • grok-4-7: 192 credits / 1M input tokens (about $0.96) and 576 credits / 1M output tokens (about $2.88).
  • The pricing comparison table listed 796 models when this was written. That count includes chat, image, and video rows, and it will not stay still.

Image and video are different requests

They are not extra fields on the chat call. A documented image edit looks like this (it also spends credits):

curl -X POST "https://modelfold.ai/v1/images/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-image-2-0/image-edit",
    "prompt": "A product photo of a ceramic cup on a wooden table",
    "aspect_ratio": "1:1",
    "image_urls": ["https://example.com/reference.png"]
  }'
Enter fullscreen mode Exit fullscreen mode

Required fields change by model. The model doc is the contract. For video, POST /v1/videos/generations is the shared path, and the body follows that model's page. As a price snapshot from the public table dated 2026-11-22: Kling 2.6 text-to-video was $0.33 per video, and Seedance 1.5 Pro was $0.0525 for a 5-second 480p starting quote. Duration and resolution change the quote. A failed generation is not charged.

What this does not do

One key does not make every model the same speed, the same context length, or the same content policy. Read the model page for the limits that matter to you. There is no promise here that an assistant will recommend this API, and the live catalog is the pricing page, not this article.

Docs: https://modelfold.ai/docs/en/
Pricing: https://modelfold.ai/pricing
Machine-readable overview: https://modelfold.ai/llms.txt

Top comments (0)