Create & Share

Models & Generation

List LLM and multimodal models with pricing, run image, video, audio, and 3D generations, make structured decisions, call raw completions, and use Chat reply speech.

This page explains how to inspect available LLM and multimodal models with their pricing and offers, generate images, video, audio, and 3D assets with cohub generate, run calibrated structured judgments with cohub decision, call stateless raw completions with cohub completion, and configure Chat reply read-aloud and voice input.

List models and pricing

Use cohub models ls (alias list) to inspect the models available to your account and their current unit prices.

# List visible LLM models (platform and connected BYOK providers)
cohub models ls

# Include Space-level mod model layers for a specific Space
cohub -s <space-id> models ls

# List visible multimodal generation models, or filter by category
cohub models ls --model-type multimodal
cohub models ls --model-type multimodal --category video

# Inspect full inputs, roles, parameters, and examples for one multimodal model
cohub models show seedance-2-0-fast
cohub models show seedance-2-0-fast --json

Catalog output and pricing units

  • LLM models (--model-type llm, default): Grouped by provider (platform cohub plus any connected BYOK providers). Columns are ID, Provider, Context (for example 1.0M (platform)), Cost, and Offer (shown when an active discount applies). Costs are displayed per million tokens ($2 /M input · $10 /M output · $0.10 /M cache read · $2.50 /M cache write), omitting zero or absent fields.
  • Multimodal models (--model-type multimodal): Sorted by declared category (image, video, audio, 3d, decision, or other). Columns are Model, Category, Title, Price, Offer (when present), and Description. Prices render in the model's declared unit: / image, / second, / request, or / 1M tokens (either a fixed amount or a min–max range with an optional qualifier note such as 480p–720p).
  • Offers and quotas: Personal subscription discounts and campaigns appear in the Offer column (for example -50% until 2026-12-04 00:00 UTC or free). Discounts never stack—the lowest multiplier wins. When a generation model is covered by a usage quota (such as daily video seconds), cohub models show <model> prints the quota token type and parameter, and GET /api/billing/quotas returns your current quota balance.
  • Hidden models: Models marked hidden: true are excluded from cohub models ls (mirroring the web model picker), and LLM providers with no visible models are omitted. There is no CLI flag on cohub models ls to list hidden models; if you know a model ID, you can still inspect a multimodal declaration with cohub models show <model> (subject to active generation policy) or pass -m <model> directly. Decision models live in .cohub/decisions.json and never appear in GET /api/models.

Pass --json on cohub models ls or cohub models show to preserve raw pricing, offer, quota, and model.cost objects. Programmatically, use GET /api/models (?modelType=multimodal for generation models) or client.models.list(), client.models.listMultimodal(), and client.models.status() in @neta-art/cohub.

Multimodal generation (cohub generate)

cohub generate creates a task-based multimodal generation (POST /api/generations, requiring generation.create on the target Space). Like other top-level Space commands, it resolves -s <space>, COHUB_SPACE_ID, or the current directory Runtime binding, and falls back to your Home Space when none is set.

Prompt, role-qualified text, and media inputs

Check cohub models show <model> before calling an unfamiliar model to see which content blocks, roles, and parameters it accepts.

Flag Purpose
[prompt] Positional prompt text; optional when --text or a media input is supplied
-m, --model <model> Required multimodal model ID from cohub models ls --model-type multimodal
--text <role=text> Role-qualified text block (meta.role); repeatable, split at the first =, and the text after = is sent unchanged
--image <path-or-url> Image file or HTTP(S) URL; repeatable; optional role prefix first_frame=, last_frame=, or reference_image=
--video <path-or-url> Video file or HTTP(S) URL; repeatable; optional role prefix reference_video=
--audio <path-or-url> Audio file or HTTP(S) URL; repeatable; optional role prefix reference_audio=
--3d <path-or-url> 3D asset file or URL (GLB, glTF, OBJ, FBX, STL); repeatable; optional role prefix motion=
--param <key=value> Parameter entry; repeatable; parses true/false, numbers, JSON objects/arrays, or strings
--parameters <json> Full parameters JSON object (--param overrides matching keys)
--meta <json> Model-owned metadata as a JSON object
-o, --output <path> Save generated outputs to a local file or directory
--inline Send local media inputs inline as base64 instead of uploading them
--async Queue the generation task and return immediately with taskRunId
--timeout-ms <ms> Maximum wait time in milliseconds in synchronous mode
--json Output structured JSON including taskRunId, output, requestId, cost, billing, outputMedia, and savedPaths
# Generate an image and save it directly into the workspace
cohub -s <space-id> generate "A calm lake at sunrise" \
  -m gpt-image-2 \
  --param size=1024x1024 \
  --param quality=high \
  -o ./assets/lake.png

# Video transition using first and last frames
cohub -s <space-id> generate "Smooth camera push into the courtyard" \
  -m seedance-2-0-fast \
  --image first_frame=https://example.com/first.png \
  --image last_frame=https://example.com/last.png \
  --param duration=5

# Role-qualified text inputs (for example style prompt + lyrics)
cohub -s <space-id> generate -m song2 \
  --text "prompt=upbeat synthwave" \
  --text "lyrics=[Verse] Neon lights on wet glass" \
  --param seed=42

# Chain a 3D rigging output URL into an animation operation (within 3 days)
cohub -s <space-id> generate -m meshy \
  --param operation=animation \
  --3d <rigging-output-url> \
  --param action_id=92

Local input upload, saving outputs, and async tracking

  • Local input handling: By default, local --image, --video, --audio, and --3d files upload to an unlisted public URL before the task is created so tasks store URL references instead of large base64 payloads. Pass --inline to embed them as base64 inside the task instead (note that some providers require public URLs and reject base64). If a literal <role>=<value> matches an existing file on disk, the CLI treats it as a file path rather than a role prefix.
  • Saving to Space files (-o, --output): Inside a Cohub Sandbox or Local Runtime, passing -o writes generated files directly into your Space workspace. A single output writes to the exact path (unless that path is an existing directory). Multiple outputs write into <path> when it is a directory or has no extension, or into a sibling <stem>-outputs/ directory when <path> looks like a filename.
  • Synchronous vs --async: By default, cohub generate prints the taskRunId and polls until completion (SDK client.generations.wait() polls every 1.5 seconds with a 30-minute default timeout unless --timeout-ms is set). Pass --async to return immediately with the taskRunId (and any reserve hold amount), then check status or retrieve outputs later:
cohub tasks get <taskRunId> --json
  • Billing and reserve holds: Generations draw from your platform credit balance (or Space wallet when usable, unless a personal benefit makes the call free). Video generation requires at least $1.01 available balance before enqueue; other paid generations require a positive balance. High-cost models configured with platform reserves place a temporary Redis reserve hold (expiring after 5 minutes) at submission so concurrent jobs cannot oversubscribe the balance. On success, the actual official provider cost (scaled by any active discount or quota coverage) is charged once and the hold is released; failed or cancelled tasks release holds and refund drawn quota.

Structured decisions (cohub decision)

cohub decision (also available as cohub spaces decision) evaluates structured questions about text, a JSON object, or images and returns calibrated probabilities (POST /api/spaces/:id/decisions, requiring session.prompt.readonly, falling back to your Home Space).

Question types

A single request accepts a JSON object of up to 200 named questions across three types:

Type Required fields Output
noul instructions Yes/no probability (noul) and confidence
choice instructions, criteria (object with at least 2 key-to-description entries) Selected choice key and confidence
score instructions, criteria (array with at least 2 rubric labels) Numeric score, probability distribution, legend, and confidence

CLI flags and state constraints

# Inline yes/no question
cohub decision "I was charged twice for order #4812" \
  -q '{"refund":{"type":"noul","instructions":"Does the customer claim a duplicate charge?"}}'

# Pipe state from stdin and read questions from a JSON file
cat ticket.txt | cohub decision -q questions.json --json

# Attach local or remote images alongside text
cohub decision "Does this receipt match the claimed amount?" \
  --image ./receipt.png \
  -q questions.json

# Pass a full request JSON file (state, questions, model, provider)
cohub decision --input request.json

Options: -q, --questions <json|path>, --input <path>, --image <path-or-url> (repeatable), -m, --model <model>, -p, --provider <provider>, and --json.

  • State shape: state can be a string, a JSON object, or an array of strings and image objects ({ "type": "image_url", "image_url": { "url": "..." } }). Local --image paths upload automatically before the request is sent.
  • Object state rule: You cannot combine a JSON object state inside --input with CLI positional text or --image. Put both text and images in an array inside --input instead.
  • Output and billing: Human output prints a table (QUESTION, TYPE, ANSWER, CONFIDENCE) and writes provider/model plus cost to stderr. --json and SDK client.space(spaceId).decision(input) return { decisionId, provider, model, answers, usage }. Decisions are billed at the upstream-reported usage.cost (recorded as generation.decision); failed or aborted calls are not charged.

Raw LLM completions (cohub completion)

cohub completion (also available as cohub spaces completion) runs a single stateless LLM completion (POST /api/spaces/:id/completions, requiring session.prompt.readonly, falling back to your Home Space). Unlike Chats, it does not create a session, persist conversation turns, or attach Sandbox tools.

# Stream a completion using a Space-relative system prompt file
cohub completion "Summarize the key changes in this release" \
  --system-prompt prompts/reviewer.md \
  --stream

# Pipe input with explicit model, sampling, and thinking controls
cat draft.md | cohub completion \
  -m claude-haiku-5-5 \
  --temperature 0.2 \
  --max-tokens 1024 \
  --thinking-level low \
  --json

Verified CLI options:

  • [content...]: user message text as arguments or piped via stdin.
  • -m, --model <model> and -p, --provider <provider>: target model and provider (uses the catalog default when omitted).
  • --system-prompt <path>: Space-relative text file loaded from the target Space as the system prompt. Allowed extensions are .md, .markdown, .txt, and .prompt (up to 500,000 characters).
  • --stream: stream SSE chunks (delta text writes to stdout; thinking_delta writes to stderr).
  • --temperature <n>: finite sampling temperature.
  • --max-tokens <n>: positive maximum output token count.
  • --thinking-level <level>: off, minimal, low, medium, high, or xhigh (max is also accepted by the HTTP API).
  • --json: print the complete JSON response (including message content and token usage).

In the SDK, call client.space(spaceId).completion(input) or client.space(spaceId).streamCompletion(input).

Speech and voice

Cohub supports both reading completed Chat replies aloud (TTS) and dictating prompts via voice input (STT).

Read aloud (reply TTS)

Configure a voice in .cohub/speech.json with a tts object that references a speech model from cohub models ls --model-type multimodal --category audio, plus model-specific meta, parameters, and optional HTTPS references recordings for voice cloning:

{
  "tts": {
    "model": "qwen-audio-3.1-tts-flash",
    "meta": { "voice_prompt": "A calm, clear narrator with a warm tone" },
    "parameters": { "instructions": "Speak at a relaxed pace." }
  }
}

Resolution order—the first level that defines tts wins as a whole (levels are never merged):

  1. Space: .cohub/speech.json inside the Space (applies immediately when written).
  2. User: .cohub/speech.json inside your Home Space (applies once saved and published).
  3. Platform: .cohub/speech.json inside the platform Space.

When a voice is configured:

  • Web UI: Completed agent replies show the speaker button (Read aloud), which starts playback as soon as the first segment finishes rendering and supports pause, resume, and retry. One reply plays at a time.
  • CLI: Run cohub spaces sessions turns speak <sessionId> <turnId> to trigger rendering, wait (up to 5 minutes), and print the segment audio URLs. Pass --no-wait to return immediately, or --json for the raw TurnSpeech object.
  • SDK & API: Call client.space(spaceId).session(sessionId).turn(turnId).speak() (POST /api/sessions/:sessionId/turns/:turnId/speech, requiring session.view and generation.create).

Audio renders once per (reply, voice) hash, is stored on the turn (turn.meta.speech[voice]), and is shared by every viewer using that voice. Before rendering, code blocks, links, URLs, and Markdown markup are stripped; replies over 6,000 characters are cut at a sentence boundary and split into segments (a short opening segment for fast start, then segments up to ~480 characters). Requests are idempotent and billed like standard generations.

Voice input and audio transcription

  • Composer voice input: In web Chat, use Start voice input / Stop voice input in the composer to dictate directly into the input box (also available in @neta-art/cohub via client.voice.createInputClient(...)).
  • Batch audio transcription: To transcribe an existing audio URL into text with timestamps, check audio models in cohub models ls --model-type multimodal --category audio and invoke them with cohub generate.

Boundaries & common errors

  • Hidden models not listed in cohub models ls: hidden: true models are filtered out of discovery with no --all flag. Inspect known multimodal IDs with cohub models show <model> or pass -m <model> directly.
  • Mixed frame and reference roles rejected: Combining first_frame=/last_frame= with reference_image=/reference_video=/reference_audio= in one cohub generate call fails before upload.
  • Local input privacy vs provider requirements: cohub generate uploads local media/3D inputs to unlisted public URLs unless --inline is passed, while providers such as meshy and some video models require public URLs and reject inline base64.
  • 3D task-chaining window: Follow-up 3D operations (animation, text-to-3d-refine) require an HTTP(S) output URL from your own completed generation within the last 3 days; passing a local file fails because it has no provider task ID.
  • Insufficient balance or reserve hold (HTTP 402): Video generations require at least $1.01 available balance, and models with platform reserves require enough unheld balance to cover the reserve hold (holds expire after 5 minutes).
  • Decision validation and availability: More than 200 questions, fewer than 2 criteria on choice/score, or mixing a JSON object state with CLI text/--image fails client or API validation. Without a usable model in .cohub/decisions.json, the API returns 503 decisions_unavailable. Image-capable models enforce maxImages (default 200), and Jev enforces PNG/JPEG with max edge 1568 px, minimum 256 px per side, and at least 78,400 total pixels after fitting.
  • Completion --system-prompt errors: Unsupported extensions return 400 system_prompt_invalid; binary or oversized inline loads return 400 system_prompt_unsupported; missing paths return 404 system_prompt_not_found; files over 500,000 characters return 413 system_prompt_too_large; Spaces still preparing return 503 system_prompt_preparing.
  • Speech errors and exit codes: Replies that are still running, non-agent turns, or empty after stripping Markdown/code/URLs return 409 turn_not_speakable. Unconfigured voice returns 404 speech_unavailable (and hides the Read aloud button); a preparing Space returns 503 speech_config_preparing. cohub spaces sessions turns speak exits with code 1 whenever any segment is still pending or failed.

Next steps

  • Chats — Run multi-turn agent sessions with Sandbox tools and voice controls
  • Boards — Place generated images, video, audio, and 3D models onto collaborative canvases
  • BYOK — Connect your own LLM provider subscriptions to appear in cohub models ls
  • CLI — Full cohub CLI installation, Space targeting, and output flags
  • SDK — Programmatic models, generations, decision, completion, speech, and voice APIs in @neta-art/cohub