Docs
Open console
Get started

Quickstart

Make your first render in four steps. Copy each snippet, run it, and move on.

v2 preview1 min read
What you need: an mnml.ai account, $10 or more to top up your API wallet (your first top-up adds $5 free), and a terminal with curl, or any HTTP client.
  1. Step 1: Top up your API wallet

    Sign up, or sign in with your mnml.ai account, then add funds on the console’s Billing page. Your Studio plan and balance do not pay for API calls.

  2. Step 2: Create an API key

    Open API keys in the console, create a key and copy it. It is shown only once, so save it as an environment variable now.

    Terminal
    export MNML_API_KEY=mk_live_…
  3. Step 3: Send a render

    Send an image and a prompt. The answer comes straight away with a job id, and charges $0.2475 for v4.6.

    curl -X POST https://api.mnml.ai/v2/renders \  -H "Authorization: Bearer $MNML_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "engine": "v4.6-ultra",    "mode": "exterior",    "image": "https://example.com/massing.png",    "prompt": "Timber facade, late afternoon, olive trees"  }'
    Answer · 202
    {  "success": true,  "data": {    "id": "10482",    "status": "queued",    "charged_usd": 0.2475,    "credits_charged": 25,    "replayed": false,    "notes": [],    "ids": [      "10482"    ]  }}
  4. Step 4: Get the result

    Ask for the job every few seconds. When its status is succeeded, outputs[0].url is your render: download it, as the link expires after an hour or two.

    curl https://api.mnml.ai/v2/jobs/10482 \  -H "Authorization: Bearer $MNML_API_KEY"
A job that fails is refunded. Read Jobs and polling for every status.

Or use an SDK

The official SDKs make the same calls, wait for the job for you, retry safely and verify webhooks. Each reads your key from MNML_API_KEY.

LanguageInstallSource
TypeScriptnpm install @mnml-ai/sdkgithub.com/mnml-ai/mnml-sdk-typescript
Pythonpip install mnml-aigithub.com/mnml-ai/mnml-sdk-python
PHPcomposer require mnml-ai/sdkgithub.com/mnml-ai/mnml-sdk-php
Gogo get github.com/mnml-ai/mnml-sdk-gogithub.com/mnml-ai/mnml-sdk-go
C# and .NETdotnet add package Mnml.Sdkgithub.com/mnml-ai/mnml-sdk-dotnet
import { Mnml } from '@mnml-ai/sdk'; const mnml = new Mnml(); // reads MNML_API_KEY const [job] = await mnml.renders.createAndWait({  mode: 'exterior',  image: 'https://example.com/massing.png', // or the file's bytes: await readFile('massing.png')  prompt: 'Timber facade, late afternoon light, olive trees',});console.log(job?.status, job?.outputs[0]?.url);

More recipes for each language are on the SDKs page.

Next steps