## Basic tool info Model name: thinkingmachines/Inkling-2-Mini Model description: Thinking Machines' multimodal chat model that reads text and up to 10 images, thinks at five effort levels or answers directly, and calls tools. Model cover: https://cdn.wiro.ai/uploads/models/thinkingmachines-inkling-2-mini-cover.webp Model categories: - llm - chat - llm-reasoning - llm-tool-call - llm-response-format Model tags: - conversational - text generation - wiro-chat - question answer - chat - image-text-to-text Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/thinkingmachines/inkling-2-mini Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Model Inputs: - name: enableThinking label: Thinking help: Think before answering. Turn it off for a direct answer; the model may still think briefly. type: select default: true options: - value: "true" label: True - value: "false" label: False - name: reasoning_effort label: Reasoning Effort help: How long the model thinks before it answers, when Thinking is on. With Max Tokens at 0 the reply budget follows it: 4,096 tokens at Minimal, 8,192 at Low, 16,384 at Medium, 32,768 at High and Extra High, and 4,096 with Thinking off. type: select default: high options: - value: "minimal" label: Minimal - value: "low" label: Low - value: "medium" label: Medium - value: "high" label: High - value: "xhigh" label: Extra High - name: inputImage label: Images help: Optional. Up to 10 pictures for the question in Prompt, as JPEG, PNG, WebP or another common image format. They are read with this request only: a later turn of the same session does not see them. type: combinefileinput default: - name: prompt label: Prompt help: Prompt to send to the model. type: textarea default: A bakery sells croissants for $3.20 and coffee for $2.75. On Monday it sold 140 croissants and 210 coffees; on Tuesday, 15% fewer croissants and 8% more coffees. Which day earned more, and by how much? Show the steps briefly. - name: user_id label: User ID help: You can leave it blank. The user_id parameter is a unique identifier for the user. It is used to store and retrieve the chat history specific to that user. You should provide a value that uniquely identifies the user across different sessions. For example, it can be the user’s email address, username, or a system-generated ID. type: text default: - name: session_id label: Session ID help: You can leave it blank. The session_id parameter represents a specific session for a user. It allows you to manage multiple sessions for the same user. If you want to maintain separate chat histories for different sessions of the same user, use a unique session_id for each session. If not specified or kept the same, the system will treat all interactions as part of the same session. type: text default: - name: system_prompt label: System Prompt help: System prompt to send to the model. It sets the assistant's role, tone, and rules. Leave it blank to send none. type: textarea default: - name: temperature label: Temperature help: Randomness of the output: 0 is the most predictable, higher values vary more. Thinking Machines recommends 1.0. type: float default: 1.0 - name: top_p label: Top P help: Samples only from the most likely tokens whose probabilities add up to top p. 1.0, the model's default, keeps every token. type: float default: 1.0 - name: top_k label: Top K help: Samples only from the k most likely tokens; 0 turns the limit off. 50 is the model's default. type: number default: 50 - name: repetition_penalty label: Repetition Penalty help: Penalizes tokens the reply already used, to avoid loops. 1.0, the model's default, turns it off. type: float default: 1.0 - name: max_tokens label: Max Tokens help: Most tokens in the reply, thinking included. Replies stop at 32,768 tokens whatever the value. 0 lets the reasoning effort set it: 4,096 at Minimal, 8,192 at Low, 16,384 at Medium, 32,768 at High and Extra High, and 4,096 with Thinking off. type: number default: 0 - name: stop_sequences label: Stop Sequences help: A semicolon-separated list of sequences to stop generation at. For example, ';' will stop generation at the first instance of '' or ''. type: text default: - name: seed label: Seed help: Random seed. Leave zero to randomize the seed type: text default: 123456 - name: do_sample label: Do Sample help: The do_sample parameter controls whether the model generates text deterministically or with randomness. For precise tasks like translations or code generation, set do_sample = false to ensure consistent and predictable outputs. For creative tasks like storytelling or poetry, set do_sample = true to allow the model to produce diverse and imaginative results. type: checkbox default: true - name: response_format label: Response Format help: Request one of the response formats explicitly audited for this model. type: json default: - name: messages label: Messages help: Conversation messages or normalized Wiro message items. Use exactly one of messages or prompt, and clear prompt when using messages. type: json-array default: - name: tools label: Tools help: OpenAI-style or normalized Wiro function definitions. This provider does not support custom tools. type: json-array default: - name: tool_choice label: Tool Choice help: Use "auto", "none", "required", or a named tool-choice object. type: json default: - name: parallel_tool_calls label: Parallel Tool Calls help: Allow the model to return more than one tool call in a turn. type: checkbox default: true - name: previousTaskToken label: Previous Task Token help: Pass the prior Run response's socketaccesstoken. Include toolOutputs for a tool-result continuation; otherwise send exactly one new prompt or messages value. type: text default: - name: toolOutputs label: Tool Outputs help: Results for calls from previousTaskToken. Each call ID must match the authenticated stored turn. type: json-array default: ## Integration Header Prepare ```bash # Sign up Wiro dashboard and create project export YOUR_API_KEY="YOUR_WIRO_API_KEY"; export YOUR_API_SECRET="XXXXXXXXX"; # unix time or any random integer value export NONCE=$(date +%s); # hmac-SHA256 (YOUR_API_SECRET+Nonce) with YOUR_API_KEY export SIGNATURE="$(echo -n "${YOUR_API_SECRET}${NONCE}" | openssl dgst -sha256 -hmac "${YOUR_API_KEY}" | awk '{print $NF}')"; ``` ## Run Command - Make HTTP Post Request ```bash curl -X POST "https://api.wiro.ai/v1/Run/thinkingmachines/inkling-2-mini" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ --data-binary @- <<'JSON' { "enableThinking": "true", "reasoning_effort": "high", "inputImage": [], "prompt": "A bakery sells croissants for $3.20 and coffee for $2.75. On Monday it sold 140 croissants and 210 coffees; on Tuesday, 15% fewer croissants and 8% more coffees. Which day earned more, and by how much? Show the steps briefly.", "user_id": "", "session_id": "", "system_prompt": "", "temperature": "1.0", "top_p": "1.0", "top_k": 50, "repetition_penalty": "1.0", "max_tokens": 0, "stop_sequences": "", "seed": "123456", "do_sample": true, "response_format": "", "messages": "", "tools": "", "tool_choice": "", "parallel_tool_calls": true, "previousTaskToken": "", "toolOutputs": "", "callbackUrl": "You can provide a callback URL; Wiro will send a POST request to it when the task is completed." } JSON ``` ## Run Command - Response ```json { "errors": [], "taskid": "2221", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "result": true } ``` ## Get Task Detail - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "taskid": "2221" }'; ``` ## Get Task Detail - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "tasktoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt" }'; ``` ## Get Task Detail - Response ```json { "total": "1", "errors": [], "tasklist": [ { "id": "2221", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "parameters": {}, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_postprocess_end", "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "totalcost": "0.003510000000", "chargedcost": "0.002808000000", "discountamount": "0.000702000000", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` totalcost is the list price. chargedcost is the amount actually billed after any discount (a store fee is included on store runs); discountamount is the discount. chargedcost is null until the charge is recorded (shortly after task_postprocess_end) and "0" for a failed or cancelled task. ## Kill Task - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "taskid": "534574" }'; ``` ## Kill Task - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE" }'; ``` ## Kill Task - Response ```json { "errors": [], "tasklist": [ { "id": "534574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Cancel Task - Make HTTP Post Request (For tasks on queue) ```bash curl -X POST "https://api.wiro.ai/v1/Task/Cancel" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "taskid": "634574" }'; ``` ## Cancel Task - Response ```json { "errors": [], "tasklist": [ { "id": "634574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Task Status Information This section defines the possible task status values returned by the API when polling for task completion. ### Completed Task Statuses (Polling can stop) These indicate that the task has reached a terminal state — either success or failure. Once any of these is received, polling should stop. - task_postprocess_end : Task completed successfully and post-processing is done. - task_cancel : Task was cancelled by the user or system. ### Running Task Statuses (Continue polling) These statuses indicate that the task is still in progress. Polling should continue if one of these is returned. - task_queue : Task is waiting in the queue. - task_accept : Task has been accepted for processing. - task_assign : Task is being assigned to a worker. - task_preprocess_start : Preprocessing is starting. - task_preprocess_end : Preprocessing is complete. - task_start : Task execution has started. - task_output : Output is being generated.