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

  2. Identify input columns

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

  1. Upload the file to get a uri Navigate to Upload a file to the server in API reference document then upload your file (image / audio / document).

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

  1. Create a row using the uri in the input column Navigate to Add rows to a table 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.

  2. 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).

  3. Validate the result

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

Last updated

Was this helpful?