PortlinePortlineDocs

AI models and credits

The models Portline's AI steps can run on, what a run costs in credits, and how metering is enforced.

Prices are estimates

Every unit cost below is an estimate taken from the provider's pricing page. None has been checked against it yet, so credits a run can change before launch. AI runs are mocks in this build: no model is called.

Credits

One credit is $0.001 of model cost. A run costs its model's unit cost times the units a typical run uses, converted to credits and rounded up, with a minimum of 1. Because allowances are in credits, they work the same for every model: a cheap model buys many runs, a larger one fewer.

  • Tiers give each included module its own monthly credits.
  • Packs share one pool across their modules.
  • Free trial: 400 credits in total.
  • Hourly cap: runs over the plan's per-hour cap are queued for the next hour with room, never run at once.

The catalog

Rendered from MODELS in @portline/pricing. Nothing else in Portline names a model.

ModelKindUnit cost (estimate)Typical runCredits a runSource
Claude Haiku 5.5 · AnthropicdefaultText$2 per million tokens (blended)0.004 × unit8Anthropic pricingEstimate, not yet checked
Claude Sonnet 5.5 · AnthropicText$6 per million tokens (blended)0.004 × unit24Anthropic pricingEstimate, not yet checked
GPT-5.1 · OpenAIText$3.44 per million tokens (blended)0.004 × unit14OpenAI pricingEstimate, not yet checked
GPT-5 mini · OpenAIText$0.69 per million tokens (blended)0.004 × unit3OpenAI pricingEstimate, not yet checked
GPT-5 nano · OpenAIText$0.14 per million tokens (blended)0.004 × unit1OpenAI pricingEstimate, not yet checked
Grok 4.7 · xAIText$3 per million tokens (blended)0.004 × unit12xAI pricingEstimate, not yet checked
Grok 4.3 · xAIText$1.56 per million tokens (blended)0.004 × unit7xAI pricingEstimate, not yet checked
GLM 5.2 (open weights) · Z.aiText$2.15 per million tokens (blended)0.004 × unit9Z.ai pricingEstimate, not yet checked
Nemotron 3 Ultra (open weights) · NVIDIAText$1.05 per million tokens (blended)0.004 × unit5NVIDIA pricingEstimate, not yet checked
Nemotron 3 Nano (open weights) · NVIDIAText$0.11 per million tokens (blended)0.004 × unit1NVIDIA pricingEstimate, not yet checked
Nemotron 3.5 Super VL (open weights) · NVIDIAText$0.24 per million tokens (blended)0.004 × unit1NVIDIA pricingEstimate, not yet checked
Gemini Flash (vision) · GoogledefaultImage$0.004 per image1 × unit4Google pricingEstimate, not yet checked
GPT Image 1 · OpenAIImage$0.04 per image1 × unit40OpenAI pricingEstimate, not yet checked
Grok Imagine · xAIImage$0.02 per image1 × unit20xAI pricingEstimate, not yet checked
Veo 3 Fast · GoogledefaultVideo$0.15 per second of video8 × unit1200Google pricingEstimate, not yet checked
Grok Imagine Video · xAIVideo$0.05 per second of video8 × unit400xAI pricingEstimate, not yet checked
ElevenLabs Flash · ElevenLabsdefaultVoice$0.05 per 1,000 characters0.8 × unit40ElevenLabs pricingEstimate, not yet checked
Whisper · OpenAIdefaultTranscription$0.006 per minute of audio2 × unit12OpenAI pricingEstimate, not yet checked
Deepgram Nova-3 · DeepgramTranscription$0.0045 per minute of audio2 × unit9Deepgram pricingEstimate, not yet checked

Template steps

Each AI step names a kind of model (text, image, video, voice or transcription), not a specific model. A run uses the model the user picked if it is of the right kind, otherwise the step's default. On a tier, the step's area decides which module's credits pay for it.

StepKindPaid fromDefault modelWhat it does
AI summaryTextOverviewClaude Haiku 5.5 (8 credits)A short paragraph on what needs attention in the current area.
Assistant replyTextOverviewClaude Haiku 5.5 (8 credits)One answer in the Assistant chat, with the records it looked at.
Damage checkImageDocksGemini Flash (vision) (4 credits)Looks at a pallet photo from the dock and flags visible damage.
Gate clip summaryVideoDocksVeo 3 Fast (1,200 credits)A short summary of a gate camera clip for a truck arrival.
Voice brief to driverVoiceMessagesElevenLabs Flash (40 credits)Reads a message aloud as a voice note for a driver.
Voicemail to threadTranscriptionMessagesWhisper (12 credits)Turns a driver voicemail into text in the thread.

What a plan's credits buy

PlanCredits / monthText (Claude Haiku 5.5)Image (Gemini Flash (vision))Video (Veo 3 Fast)Voice (ElevenLabs Flash)Transcription (Whisper)
Starter1,200 per module150 runs300 runs1 runs30 runs100 runs
Growth1,200 per module150 runs300 runs1 runs30 runs100 runs
Scale1,200 per module150 runs300 runs1 runs30 runs100 runs
Cold chain9,600 shared1,200 runs2,400 runs8 runs240 runs800 runs
Drayage & trucking8,000 shared1,000 runs2,000 runs6 runs200 runs666 runs
3PL warehousing9,600 shared1,200 runs2,400 runs8 runs240 runs800 runs

How metering is enforced

The app checks credits before a run, and Postgres checks again on every insert into pl_ai_runs:

  • pl.ai_models and pl.ai_steps mirror the catalog and the steps (the database test suite checks the mirrors match @portline/pricing).
  • The meter trigger refuses a run whose model doesn't fit the step's kind, and sets the run's credits from pl.ai_models, whatever the client sent.
  • It sums the credits already used this month (per module on a tier, across the pool on a pack, or the trial pool) and refuses a run that would go past the allowance.
  • When the last hour already holds the plan's cap of runs, it queues the run for the next hour with room instead of running it.

On this page