Now you can use 'data' like a normal Pyt·续1

How much time do you have for this trip? Are you trying to get down to LA in a single day, or are you open to spending a night somewhere along the coast?


```json
{
  "candidates": [
    {
      "content": {
        "role": "model",
        "parts": [
          {
            "text": "The stops you make will depend heavily on which route you decide to take. \n\nIf you want to do the drive in **5-6 hours**, you'll take **Interstate 5 (I-5)**, which is the fast, inland route. If you have a full day (or even better, two days), you can take the **Pacific Coast Highway (Highway 1 / US-101)**, which is one of the most famous and scenic drives in the world.\n\nHere are the best stops for both options, listed in order from North to South:\n\n### 🌊 The Scenic Coastal Route (Highway 1 / US-101)\n*This route takes 9+ hours of pure driving, so it’s best if you have a whole day or plan to stay somewhere overnight.*\n\n*   **Santa Cruz:** A classic California surf town. You can stretch your legs at the famous Santa Cruz Beach Boardwalk or grab a coffee downtown.\n*   **Monterey & Carmel-by-the-Sea:** Monterey is home to the world-renowned Monterey Bay Aquarium and Cannery Row. Right next door is Carmel, a charming, fairytale-like village with boutique shops and a beautiful white-sand beach.\n*   **Big Sur:** This is the most dramatic, cliff-hugging part of the drive. Must-sees include the iconic **Bixby Creek Bridge** and **McWay Falls** (an 80-foot waterfall that drops right onto the beach). *Note: Always check Caltrans before your trip, as Highway 1 frequently experiences closures due to landslides.*\n*   **San Simeon:** Stop here to see **Hearst Castle** (a magnificent historic mansion on a hill—book tickets in advance!) and the Piedras Blancas Elephant Seal Rookery, where you can see hundreds of massive elephant seals lounging on the beach.\n*   **San Luis Obispo (SLO):** A great halfway point. It has a fantastic, walkable downtown area. If you like quirky stops, check out Bubblegum Alley or grab a slice of cake at the wildly eccentric, pink-themed **Madonna Inn**.\n*   **Santa Barbara:** Known as the \"American Riviera.\" It features stunning Spanish colonial architecture, great wine tasting, beautiful beaches, and a vibrant downtown street (State Street). \n\n### 🚗 The Fast Inland Route (I-5)\n*This route is mostly flat agricultural land. The stops here are less about sightseeing and more about unique places to grab food and stretch your legs.*\n\n*   **Casa de Fruta (Pacheco Pass):** If you take Highway 152 to connect to I-5, this massive roadside fruit stand/theme park is a legendary California pit stop. Great for snacks, dried fruit, and a quick break.\n*   **Harris Ranch (Coalinga):** A massive, famous steakhouse and inn sitting right on I-5. It's a very popular spot to stop for a nice sit-down lunch or dinner.\n*   **Kettleman City / Bravo Farms:** Kettleman City is the classic halfway point. It has a massive In-N-Out Burger, but the real star is **Bravo Farms**—a quirky, western-themed roadside attraction with a cheese factory, ice cream, a petting zoo, and lots of souvenirs. \n*   **Tejon Ranch (The Grapevine):** Right before you climb the mountains to drop down into Los Angeles, there are the Outlets at Tejon if you want to do a little shopping or need a final coffee/food break.\n\n**How much time do you have for this trip?** Are you trying to get down to LA in a single day, or are you open to spending a night somewhere along the coast?",
            "thoughtSignature": "AY89a1/VDTias+le3Jn45CwRR51o60DI2g5LpXxUzKaW/8Rt94VWKZXixIBISizF6Qy2OBHUcBw02EfJeTs/fLMjh3YQUZyVvNEjo15kJki4BxvcFfmRrLJsLAipjR7QFA/hVSSJBOSLI7jsPQvzFpdF/3SFBk6RKtooUR7QEftb26SctN/3gXtmFzrgEB3HvXC7VTldKzNLaGlUT5fdb0Pj2Mi4uxX2soEg/EnKEVXdMO+LQD5i6XqoBLoaqKjf16M0N8kiJ8uRl2wb2JXxOCCEyagO+ktumAJhC2aWMgel93DWX62e0mj3sYW94ecQ0tzhQO+ghevWLdXi9CPKPOnJ5GefPgiqlZ4elG1IXRrvNMaDkY0xba5QTm/vNLBDJWIhGh5KLdD5OPfZfkVNzI+IIWPXC+QJB2lXy3zEEebOlpMlmPiKk0km4EYN4IbgRU60ZJiYsJzS0mHlb1uqOhspd8AZo63NItrfVnweHp1yEyk0emle8zSvzylFzcTtSAalGNrt314rNgFi86ISjxbBmySKaL2aRckXXElaDdaniPdzb0xvvJ5EbHVk5IgZyllLsm0zLqL8pOMrC6SOEex4zSFvKuxXhVRfcE8lSSzooz+5VTRuk+3l1qU5GB0+LP+htSh2b+q3s5V1aJKpvDpAAF8PMWWwUllvuLjgC/cnB9lS/F/Z3PIV5jRngQyNYPNa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FKy6aGE9iBdcrxsCwxsywP5ljQ4hm9dM4SIwGjGWFo/+ggBoy9t2U9Iri681RpHh6d8ZfvlH5DNpQu0bF5YMXM0/Y+ubghZfXX0yZc9UXAdPR2RG2VO42Lq1cp7O1PmmNEjwjAi3CXo4jm0Ftfnj1mm/k2oEogDnU4054iA0tSDAjeduQtctdGBWf6d3zcOzlP6BqrKnMaiDxyHxlX5gIHjtP/nU3iKUuh0Oi8deRiqxFGkf88Jjm9mrHI0vAGOC0nfDTHQvpyaTldhQhDHkiWHtwZO5N/toPtWzXN0SIvIjnKMxtq+0GhU1xgZp9x/SqO3MDbvhW+TF2gAYTtlfwobxURrFAcDMQOdRlZOdNEc2zxBy57rXgKwoaUkpwXevKzou4j5Q3+ZbPXhXpKCx/mtCyqHUm5wv0hff/kOKz3KU+MIi+ozWoMHGmiJ0t2w+lkxAqYqO0ftQlrX6B6o8J+HdhLn3N9okrmYBDedlLWeGwaaILGCoYazFjrFAnbxdy0AOMqNShUhA1B056ZM3Cms+Id9uJJXEi5sf4mMPSdW+2CfhgqMd7UOZXmrbrrjCLIaUwcw1HFupMk8oM77FqiDMdCeNazHsTGV0rtj1r18e4aLRk2/txYWLBj+hiSJnmiY3wNNHlLOjwFRgd76/DWOdz1QObv68a6SI41dz5kreJ+i8F
... response truncated ...
**Creative Writing** — Higher temperature for creative output
const response = await env.AI.run(
  'google/gemini-3.1-pro',
  {
    contents: [
      {
        parts: [{ text: 'Write a short story opening about a detective finding an unusual clue.' }],
        role: 'user',
      },
    ],
    generationConfig: { maxOutputTokens: 4096, temperature: 0.8 },
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "google/gemini-3.1-pro",
  "input": {
    "contents": [
      {
        "parts": [
          {
            "text": "Write a short story opening about a detective finding an unusual clue."
          }
        ],
        "role": "user"
      }
    ],
    "generationConfig": {
      "maxOutputTokens": 4096,
      "temperature": 0.8
    }
  }
}'
Detective Elias Vance didn’t mind blood; it was the absolute absence of it that set his teeth on edge.

The penthouse apartment of billionaire tech mogul Marcus Sterling was a monument to sterile minimalism—white marble, white leather, glass. Even Sterling himself, currently lying supine in the center of the sunken living room, looked less like a corpse and more like a carefully placed art installation. No visible wounds. No signs of struggle. Just a dead man in a two-thousand-dollar silk robe, staring blankly at the vaulted ceiling.

The forensics team was buzzing around the perimeter, dusting glass and bagging the obvious: the half-empty crystal tumbler, the silk slippers, the victim's unlocked phone. Vance ignored them. He operated on the principle that killers who left clean scenes always overcompensated. They focused so hard on the macro that they forgot the micro.

He dropped to his knees, ignoring the sharp protest in his lower back, and brought his face inches from the pristine, white rug. He began his crawl, moving in tight, methodical spirals outward from the body.

Ten minutes in, he found it.

It was tucked just beneath the shadow of a floating glass coffee table, nearly invisible against the thick pile of the rug. Vance pulled a pair of bamboo tweezers and a small evidence bag from his trench coat pocket. With practiced care, he pinched the object and lifted it into the harsh glare of the tactical lights.

It was a walnut shell.

Vance frowned. A discarded nutshell in an apartment that smelled entirely of ozone and expensive bleach was odd, but not Earth-shattering. Then, he noticed the seam. The shell had been sliced perfectly in half and hinged with a piece of brass wire so thin it looked like a golden hair.

Using the tip of his pen, Vance nudged the top half of the shell open.

He stopped breathing. He fumbled in his pocket for his jeweler's loupe, jammed it into his right eye, and leaned in close.

Inside the hollowed-out walnut was a diorama. It was carved from what looked like ivory and painted with a single-hair brush. It was a perfect, impossibly detailed replica of the penthouse living room. There was the glass table. There was the white leather sofa.

And there, in the center of the tiny, carved floor, was a minuscule figure wearing a silk robe, lying dead on its back.

But that wasn't what made the hair on Vance’s arms stand up. Standing over the tiny, dead figure in the walnut shell was another carving. It was a man in a trench coat, on his hands and knees, holding a magnifying glass to his eye.

Vance slowly lowered the shell, the silence of the sterile room suddenly feeling very heavy, and looked up at the empty ceiling. They weren't just hunting a killer. They were dealing with an audience.