I can't create my first action

Hello everyone.

Trying to create my first action for a custom GPT.
I want to use a endpoint from photoroom

https://www.photoroom.com/api/docs/reference/87e1c15260b1f-image-editing-v2-plus-plan

to remove the background from a picture URL provided by the user (i will manage uploaded pictures later)

I used the ActionsGPT to design my schema and I want to keep it simple for now only using the imageURL parameter and none of the rest for now.

openapi: 3.1.0
info:
  title: Photoroom Image Editing API
  description: API for removing the background from an image using the `imageUrl` parameter.
  version: 1.0.0
servers:
  - url: https://image-api.photoroom.com/v2/edit
    description: Production server
paths:
  /remove-background:
    get:
      operationId: removeBackground
      summary: Remove the background from an image.
      parameters:
        - name: imageUrl
          in: query
          required: true
          description: The URL of the image from which the background should be removed.
          schema:
            type: string
            format: uri
      responses:
        '200':
          description: The image with the background removed.
          content:
            image/png:
              schema:
                type: string
                format: binary
        '400':
          description: Bad request, likely due to an invalid or missing imageUrl parameter.
        '500':
          description: Server error while processing the image.

I added an Authentication using API Key with AuthType Bearer and copy/pasted my production key.

When testing my action i always get

{
  "response_data": {
    "error": {
      "message": "API key not provided or invalid. Provide it as x-api-key header or as a parameter."
    }
  },
  "status_code": 401,
  "action_id": "g-381e10928ffa97e3b7fba9107d15831540231928"
}
Error talking to

It seems there was an issue with accessing the image processing service due to a missing or invalid API key. If you have the appropriate key or further instructions, please provide them, and I'll proceed with the operation.

Can anyone help me understanding what is broken here ?

1 Like

the auth your provided is for “Authentication”: "Bearer "+API-KEY. the action API seems to be expecting “x-api-key”: API-KEY, instead.

1 Like