> For the complete documentation index, see [llms.txt](https://docs.jamaibase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jamaibase.com/developer-reference/openapi-documentation/writing-to-action-table-with-openapi/multimodel-image-audio-document.md).

# Multimodel: Image / Audio / Document

Steps

1. Inspect the table schema

   In JamAI Base Cloud (or via GET /api/v2/gen\_tables/action?table\_id={table\_id}), confirm:

   * Required fields (input columns)
   * Data types&#x20;
2. Identify input columns

   Note the column names you’ll set (e.g., newKey1, newKey2) and their expected types.

<figure><img src="/files/QaDubR8P61aOtS1xGs6l" alt=""><figcaption></figcaption></figure>

3. Upload the file to get a uri \
   [Navigate to Upload a file ](https://jamaibase.readme.io/reference/upload_file_api_v2_files_upload_post)to the server in API reference document then upload your file (image / audio / document).&#x20;

<figure><img src="/files/TjPsY9H0dLT9DdPC3LJL" alt=""><figcaption></figcaption></figure>

If the response is 200, it means the file is uploaded successfully. Copy the output from the RESPONSE column for next step.&#x20;

<figure><img src="/files/66xB2iVbqfj6ESqQrSbB" alt=""><figcaption></figcaption></figure>

4. Create a row using the uri in the input column\
   Navigate to [Add rows to a table](https://jamaibase.readme.io/reference/add_rows_api_v2_gen_tables__table_type__rows_add_post) then build a JSON body by filling in newKey and the file uri from previous step if the input type is image / audio / document, then click "Try It!" send the request.<br>

   <figure><img src="/files/TGtXn9GnluI8TmYxOpFO" alt=""><figcaption></figcaption></figure>

5. Evaluate the response
   * 200 OK — Returned the existing resource for the same Idempotency-Key.
   * 422 Unprocessable Entity — Validation/type error (check schema and field types).

6. Validate the result

   * In JamAI Base Cloud: open the Action Table and confirm the new row is present.

   <figure><img src="/files/pQMcAIITVp7Dt2F8d0W7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.jamaibase.com/developer-reference/openapi-documentation/writing-to-action-table-with-openapi/multimodel-image-audio-document.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
