Gemini api curl - bubble does not like it

I’m trying to import any of the curl available on Quickstart: Get started with Gemini using the REST API  |  Google AI for Developers
but bubble’s api import curl keeps saying they are invalid, but provide no details aobut what’s invalid.

for instance: ```
curl https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$API_KEY \


-H 'Content-Type: application/json' \

-X POST \

-d '{

    "contents": [{

        "parts":[

            {"text": "Write a story about a magic backpack."}

        ]

    }],

    "safetySettings": [

        {

            "category": "HARM_CATEGORY_DANGEROUS_CONTENT",

            "threshold": "BLOCK_ONLY_HIGH"

        }

    ],

    "generationConfig": {

        "stopSequences": [

            "Title"

        ],

        "temperature": 1.0,

        "maxOutputTokens": 800,

        "topP": 0.8,

        "topK": 10

    }

}'  2> /dev/null | grep "text"

sorry for the mess that copy/paste made? weird. I was able to use curl import on the openai chatgpt api with no issues.

What did you set in API Connector?

I pasted this curl into the ‘import from curl’ and it says I can’t import it.

Yes but the curl your posted is not correct (last line for example with v)
Si it’s hard to know exactly what is the issue…

Jici, I know my curl is wrong, but I don’t know how to fix it, rather than confirming that my curl is wrong, can you past adjusted curl? I got that from google’s own site. I’m clueless when it comes to curl.